diff --git a/.env.development b/.env.development index b2ecbc7..14ee346 100644 --- a/.env.development +++ b/.env.development @@ -5,7 +5,11 @@ VITE_APP_TITLE = 新能源项目管理平台 VITE_APP_ENV = 'development' # 开发环境 +<<<<<<< HEAD VITE_APP_BASE_API = 'http://192.168.110.119:8899' +======= +VITE_APP_BASE_API = 'http://192.168.110.119:8898' +>>>>>>> f37ca487f6194c94e3515dc4824f5d7527a32013 # 无人机接口地址 diff --git a/src/api/design/volumeCatalog/index.ts b/src/api/design/volumeCatalog/index.ts new file mode 100644 index 0000000..37bcd37 --- /dev/null +++ b/src/api/design/volumeCatalog/index.ts @@ -0,0 +1,97 @@ +import request from '@/utils/request'; +import { AxiosPromise } from 'axios'; +import { VolumeCatalogVO, VolumeCatalogForm, VolumeCatalogQuery } from '@/api/design/volumeCatalog/types'; + +/** + * 查询卷册目录列表 + * @param query + * @returns {*} + */ + +export const listVolumeCatalog = (query?: VolumeCatalogQuery): AxiosPromise => { + return request({ + url: '/design/volumeCatalog/list', + method: 'get', + params: query + }); +}; + +/** + * 查询卷册目录详细 + * @param id + */ +export const getVolumeCatalog = (id: string | number): AxiosPromise => { + return request({ + url: '/design/volumeCatalog/' + id, + method: 'get' + }); +}; + +/** + * 查询卷册目录文件列表 + * @param id + * @returns {*} + */ +export const getVolumeCatafileList = (id: string | number): AxiosPromise => { + return request({ + url: '/design/volumeCatalog/listFileById/' + id, + method: 'get' + }); +}; + +/** + * 查阅卷册目录文件 + * @param id + */ +export const lookViewerFile = (id: string | number): AxiosPromise => { + return request({ + url: '/design/volumeCatalog/viewerFile/' + id, + method: 'get' + }); +}; +/** + * 新增卷册目录 + * @param data + */ +export const addVolumeCatalog = (data: VolumeCatalogForm) => { + return request({ + url: '/design/volumeCatalog', + method: 'post', + data: data + }); +}; + +/** + * 修改卷册目录 + * @param data + */ +export const updateVolumeCatalog = (data: VolumeCatalogForm) => { + return request({ + url: '/design/volumeCatalog', + method: 'put', + data: data + }); +}; + +/** + * 删除卷册目录 + * @param id + */ +export const delVolumeCatalog = (id: string | number | Array) => { + return request({ + url: '/design/volumeCatalog/' + id, + method: 'delete' + }); +}; + +/** + * 上传卷册文件 + * @param query + */ +export const uploadVolumeFile = (query?: any): AxiosPromise => { + return request({ + url: '/design/volumeFile', + method: 'POST', + data: query + }); +}; diff --git a/src/api/design/volumeCatalog/types.ts b/src/api/design/volumeCatalog/types.ts new file mode 100644 index 0000000..bc5cee3 --- /dev/null +++ b/src/api/design/volumeCatalog/types.ts @@ -0,0 +1,96 @@ +export interface VolumeCatalogVO { + /** + * 主键ID + */ + id: string | number; + + /** + * 项目ID + */ + projectId: string | number; + + /** + * 设计子项ID + */ + designSubitemId: string | number; + + /** + * 卷册号 + */ + volumeNumber: string; + + /** + * 资料名称 + */ + documentName: string; + + /** + * 备注 + */ + remark: string; + +} + +export interface VolumeCatalogForm extends BaseEntity { + /** + * 主键ID + */ + id?: string | number; + + /** + * 项目ID + */ + projectId?: string | number; + + /** + * 设计子项ID + */ + designSubitemId?: string | number; + + /** + * 卷册号 + */ + volumeNumber?: string; + + /** + * 资料名称 + */ + documentName?: string; + + /** + * 备注 + */ + remark?: string; + +} + +export interface VolumeCatalogQuery extends PageQuery { + + /** + * 项目ID + */ + projectId?: string | number; + + /** + * 设计子项ID + */ + designSubitemId?: string | number; + + /** + * 卷册号 + */ + volumeNumber?: string; + + /** + * 资料名称 + */ + documentName?: string; + + /** + * 日期范围参数 + */ + params?: any; +} + + + diff --git a/src/api/materials/batchPlan/index.ts b/src/api/materials/batchPlan/index.ts new file mode 100644 index 0000000..20f8970 --- /dev/null +++ b/src/api/materials/batchPlan/index.ts @@ -0,0 +1,99 @@ +import request from '@/utils/request'; +import { AxiosPromise } from 'axios'; +import { CailiaoshebeiVO, CailiaoshebeiForm, CailiaoshebeiQuery } from '@/api/materials/cailiaoshebei/types'; + +/** + * 查询物资-材料设备列表 + * @param query + * @returns {*} + */ + +export const listCailiaoshebei = (query?: any): AxiosPromise => { + return request({ + url: '/cailiaoshebei/materialbatchdemandplan/list', + method: 'get', + params: query + }); +}; + +/** + * 查询物资-材料设备详细 + * @param id + */ +export const getCailiaoshebei = (id: string | number): AxiosPromise => { + return request({ + url: '/cailiaoshebei/cailiaoshebei/' + id, + method: 'get' + }); +}; + +/** + * 新增物资-材料设备 + * @param data + */ +export const addCailiaoshebei = (data: CailiaoshebeiForm) => { + return request({ + url: '/cailiaoshebei/materialbatchdemandplan', + method: 'post', + data: data + }); +}; + +/** + * 修改物资-材料设备 + * @param data + */ +export const updateCailiaoshebei = (data: CailiaoshebeiForm) => { + return request({ + url: '/cailiaoshebei/cailiaoshebei', + method: 'put', + data: data + }); +}; + +/** + * 删除物资-材料设备 + * @param id + */ +export const delCailiaoshebei = (id: string | number | Array) => { + return request({ + url: '/cailiaoshebei/cailiaoshebei/remove/' + id, + method: 'delete' + }); +}; + +/** + * 查询物资-材料设备批次列表 + * @param query + * @returns {*} + */ +export const listBatch = (query?: any): AxiosPromise => { + return request({ + url: '/cailiaoshebei/materialbatchdemandplan/pcList', + method: 'get', + params: query + }); +}; + +/** + * 新增物资-材料设备批次 + * @param data + */ +export const getBatch = (data: any) => { + return request({ + url: '/cailiaoshebei/materialbatchdemandplan/pcAdd', + method: 'post', + data: data + }); +}; + +/** + * 删除物资-材料设备批次 + * @param ids + */ +export const delBatch = (ids: string | number | Array) => { + return request({ + url: '/cailiaoshebei/materialbatchdemandplan/' + ids, + method: 'delete' + }); +}; diff --git a/src/api/materials/batchPlan/types.ts b/src/api/materials/batchPlan/types.ts new file mode 100644 index 0000000..a60ab66 --- /dev/null +++ b/src/api/materials/batchPlan/types.ts @@ -0,0 +1,229 @@ +export interface CailiaoshebeiVO { + /** + * 主键ID + */ + id: string | number; + + /** + * 批次ID + */ + batchId: string | number; + + /** + * 供货商ID + */ + supplierId: string | number; + + /** + * 供货商 + */ + supplier: string; + + /** + * 设备材料名称 + */ + name: string; + + /** + * 供货来源(字典) + */ + supply: string; + + /** + * 规格型号 + */ + specification: string; + + /** + * 特征描述 + */ + signalment: string; + + /** + * 物料编码 + */ + materialCode: string; + + /** + * 计划到场时间 + */ + arrivalTime: string; + + /** + * 计划完成时间 + */ + finishTime: string; + + /** + * 计量单位 + */ + unit: string; + + /** + * 计划数量 + */ + plan: number; + + /** + * 实际数量 + */ + realQuantity: number; + + /** + * 备注 + */ + remark: string; +} + +export interface CailiaoshebeiForm extends BaseEntity { + /** + * 主键ID + */ + id?: string | number; + projectId?: string | number; + batchNumber?: string | number; + addDataList?: any[]; + approvalProject?: string; + /** + * 批次ID + */ + batchId?: string | number; + + /** + * 供货商ID + */ + supplierId?: string | number; + + /** + * 供货商 + */ + supplier?: string; + + /** + * 设备材料名称 + */ + name?: string; + + /** + * 供货来源(字典) + */ + supply?: string; + + /** + * 规格型号 + */ + specification?: string; + + /** + * 特征描述 + */ + signalment?: string; + + /** + * 物料编码 + */ + materialCode?: string; + + /** + * 计划到场时间 + */ + arrivalTime?: string; + + /** + * 计划完成时间 + */ + finishTime?: string; + + /** + * 计量单位 + */ + unit?: string; + + /** + * 计划数量 + */ + plan?: number; + + /** + * 实际数量 + */ + realQuantity?: number; + + /** + * 备注 + */ + remark?: string; +} + +export interface CailiaoshebeiQuery extends PageQuery { + /** + * 批次ID + */ + batchId?: string | number; + projectId?: string | number; + batchNumber?: string; + /** + * 供货商ID + */ + supplierId?: string | number; + + /** + * 供货商 + */ + supplier?: string; + + /** + * 设备材料名称 + */ + name?: string; + + /** + * 供货来源(字典) + */ + supply?: string; + + /** + * 规格型号 + */ + specification?: string; + + /** + * 特征描述 + */ + signalment?: string; + + /** + * 物料编码 + */ + materialCode?: string; + + /** + * 计划到场时间 + */ + arrivalTime?: string; + + /** + * 计划完成时间 + */ + finishTime?: string; + + /** + * 计量单位 + */ + unit?: string; + + /** + * 计划数量 + */ + plan?: number; + + /** + * 实际数量 + */ + realQuantity?: number; + + /** + * 日期范围参数 + */ + params?: any; +} diff --git a/src/api/materials/cailiaoshebei/index.ts b/src/api/materials/cailiaoshebei/index.ts new file mode 100644 index 0000000..38b924b --- /dev/null +++ b/src/api/materials/cailiaoshebei/index.ts @@ -0,0 +1,99 @@ +import request from '@/utils/request'; +import { AxiosPromise } from 'axios'; +import { CailiaoshebeiVO, CailiaoshebeiForm, CailiaoshebeiQuery } from '@/api/materials/cailiaoshebei/types'; + +/** + * 查询物资-材料设备列表 + * @param query + * @returns {*} + */ + +export const listCailiaoshebei = (query?: CailiaoshebeiQuery): AxiosPromise => { + return request({ + url: '/cailiaoshebei/cailiaoshebei/list', + method: 'get', + params: query + }); +}; + +/** + * 查询物资-材料设备详细 + * @param id + */ +export const getCailiaoshebei = (id: string | number): AxiosPromise => { + return request({ + url: '/cailiaoshebei/cailiaoshebei/' + id, + method: 'get' + }); +}; + +/** + * 新增物资-材料设备 + * @param data + */ +export const addCailiaoshebei = (data: CailiaoshebeiForm) => { + return request({ + url: '/cailiaoshebei/cailiaoshebei', + method: 'post', + data: data + }); +}; + +/** + * 修改物资-材料设备 + * @param data + */ +export const updateCailiaoshebei = (data: CailiaoshebeiForm) => { + return request({ + url: '/cailiaoshebei/cailiaoshebei', + method: 'put', + data: data + }); +}; + +/** + * 删除物资-材料设备 + * @param id + */ +export const delCailiaoshebei = (id: string | number | Array) => { + return request({ + url: '/cailiaoshebei/cailiaoshebei/remove/' + id, + method: 'delete' + }); +}; + +/** + * 查询物资-材料设备批次列表 + * @param query + * @returns {*} + */ +export const listBatch = (query?: any): AxiosPromise => { + return request({ + url: '/cailiaoshebei/cailiaoshebei/pcList', + method: 'get', + params: query + }); +}; + +/** + * 新增物资-材料设备批次 + * @param data + */ +export const getBatch = (data: any) => { + return request({ + url: '/cailiaoshebei/cailiaoshebei/pcAdd', + method: 'post', + data: data + }); +}; + +/** + * 删除物资-材料设备批次 + * @param ids + */ +export const delBatch = (ids: string | number | Array) => { + return request({ + url: '/cailiaoshebei/cailiaoshebei/pcDelete/' + ids, + method: 'delete' + }); +}; diff --git a/src/api/materials/cailiaoshebei/types.ts b/src/api/materials/cailiaoshebei/types.ts new file mode 100644 index 0000000..df7b40b --- /dev/null +++ b/src/api/materials/cailiaoshebei/types.ts @@ -0,0 +1,228 @@ +export interface CailiaoshebeiVO { + /** + * 主键ID + */ + id: string | number; + + /** + * 批次ID + */ + batchId: string | number; + + /** + * 供货商ID + */ + supplierId: string | number; + + /** + * 供货商 + */ + supplier: string; + + /** + * 设备材料名称 + */ + name: string; + + /** + * 供货来源(字典) + */ + supply: string; + + /** + * 规格型号 + */ + specification: string; + + /** + * 特征描述 + */ + signalment: string; + + /** + * 物料编码 + */ + materialCode: string; + + /** + * 计划到场时间 + */ + arrivalTime: string; + + /** + * 计划完成时间 + */ + finishTime: string; + + /** + * 计量单位 + */ + unit: string; + + /** + * 计划数量 + */ + plan: number; + + /** + * 实际数量 + */ + realQuantity: number; + + /** + * 备注 + */ + remark: string; +} + +export interface CailiaoshebeiForm extends BaseEntity { + /** + * 主键ID + */ + id?: string | number; + projectId?: string | number; + batchNumber?: string | number; + approvalDesign?: string; + /** + * 批次ID + */ + batchId?: string | number; + + /** + * 供货商ID + */ + supplierId?: string | number; + + /** + * 供货商 + */ + supplier?: string; + + /** + * 设备材料名称 + */ + name?: string; + + /** + * 供货来源(字典) + */ + supply?: string; + + /** + * 规格型号 + */ + specification?: string; + + /** + * 特征描述 + */ + signalment?: string; + + /** + * 物料编码 + */ + materialCode?: string; + + /** + * 计划到场时间 + */ + arrivalTime?: string; + + /** + * 计划完成时间 + */ + finishTime?: string; + + /** + * 计量单位 + */ + unit?: string; + + /** + * 计划数量 + */ + plan?: number; + + /** + * 实际数量 + */ + realQuantity?: number; + + /** + * 备注 + */ + remark?: string; +} + +export interface CailiaoshebeiQuery extends PageQuery { + /** + * 批次ID + */ + batchId?: string | number; + projectId?: string | number; + batchNumber?: string; + /** + * 供货商ID + */ + supplierId?: string | number; + + /** + * 供货商 + */ + supplier?: string; + + /** + * 设备材料名称 + */ + name?: string; + + /** + * 供货来源(字典) + */ + supply?: string; + + /** + * 规格型号 + */ + specification?: string; + + /** + * 特征描述 + */ + signalment?: string; + + /** + * 物料编码 + */ + materialCode?: string; + + /** + * 计划到场时间 + */ + arrivalTime?: string; + + /** + * 计划完成时间 + */ + finishTime?: string; + + /** + * 计量单位 + */ + unit?: string; + + /** + * 计划数量 + */ + plan?: number; + + /** + * 实际数量 + */ + realQuantity?: number; + + /** + * 日期范围参数 + */ + params?: any; +} diff --git a/src/api/materials/orderEquipment/index.ts b/src/api/materials/orderEquipment/index.ts new file mode 100644 index 0000000..434f40a --- /dev/null +++ b/src/api/materials/orderEquipment/index.ts @@ -0,0 +1,99 @@ +import request from '@/utils/request'; +import { AxiosPromise } from 'axios'; +import { CailiaoshebeiVO, CailiaoshebeiForm, CailiaoshebeiQuery } from '@/api/materials/cailiaoshebei/types'; + +/** + * 查询物资-材料设备列表 + * @param query + * @returns {*} + */ + +export const listCailiaoshebei = (query?: any): AxiosPromise => { + return request({ + url: '/cailiaoshebei/materialsorder/list', + method: 'get', + params: query + }); +}; + +/** + * 查询物资-材料设备详细 + * @param id + */ +export const getCailiaoshebei = (id: string | number): AxiosPromise => { + return request({ + url: '/cailiaoshebei/cailiaoshebei/' + id, + method: 'get' + }); +}; + +/** + * 新增物资-材料设备 + * @param data + */ +export const addCailiaoshebei = (data: CailiaoshebeiForm) => { + return request({ + url: '/cailiaoshebei/materialsorder/modifyTheOrderForm', + method: 'put', + data: data + }); +}; + +/** + * 修改物资-材料设备 + * @param data + */ +export const updateCailiaoshebei = (data: CailiaoshebeiForm) => { + return request({ + url: '/cailiaoshebei/cailiaoshebei', + method: 'put', + data: data + }); +}; + +/** + * 删除物资-材料设备 + * @param id + */ +export const delCailiaoshebei = (id: string | number | Array) => { + return request({ + url: '/cailiaoshebei/cailiaoshebei/remove/' + id, + method: 'delete' + }); +}; + +/** + * 查询物资-材料设备批次列表 + * @param query + * @returns {*} + */ +export const listBatch = (query?: any): AxiosPromise => { + return request({ + url: '/cailiaoshebei/materialsorder/pcPlanList', + method: 'get', + params: query + }); +}; + +/** + * 新增物资-材料设备批次 + * @param data + */ +export const getBatch = (data: any) => { + return request({ + url: '/cailiaoshebei/materialbatchdemandplan/pcAdd', + method: 'post', + data: data + }); +}; + +/** + * 删除物资-材料设备批次 + * @param ids + */ +export const delBatch = (ids: string | number | Array) => { + return request({ + url: '/cailiaoshebei/materialbatchdemandplan/' + ids, + method: 'delete' + }); +}; diff --git a/src/api/materials/orderEquipment/types.ts b/src/api/materials/orderEquipment/types.ts new file mode 100644 index 0000000..50503f7 --- /dev/null +++ b/src/api/materials/orderEquipment/types.ts @@ -0,0 +1,229 @@ +export interface CailiaoshebeiVO { + /** + * 主键ID + */ + id: string | number; + + /** + * 批次ID + */ + batchId: string | number; + + /** + * 供货商ID + */ + supplierId: string | number; + + /** + * 供货商 + */ + supplier: string; + + /** + * 设备材料名称 + */ + name: string; + + /** + * 供货来源(字典) + */ + supply: string; + + /** + * 规格型号 + */ + specification: string; + + /** + * 特征描述 + */ + signalment: string; + + /** + * 物料编码 + */ + materialCode: string; + + /** + * 计划到场时间 + */ + arrivalTime: string; + + /** + * 计划完成时间 + */ + finishTime: string; + + /** + * 计量单位 + */ + unit: string; + + /** + * 计划数量 + */ + plan: number; + + /** + * 实际数量 + */ + realQuantity: number; + + /** + * 备注 + */ + remark: string; +} + +export interface CailiaoshebeiForm extends BaseEntity { + /** + * 主键ID + */ + id?: string | number; + projectId?: string | number; + batchNumber?: string | number; + addDataList?: any[]; + + /** + * 批次ID + */ + batchId?: string | number; + + /** + * 供货商ID + */ + supplierId?: string | number; + + /** + * 供货商 + */ + supplier?: string; + + /** + * 设备材料名称 + */ + name?: string; + + /** + * 供货来源(字典) + */ + supply?: string; + + /** + * 规格型号 + */ + specification?: string; + + /** + * 特征描述 + */ + signalment?: string; + + /** + * 物料编码 + */ + materialCode?: string; + + /** + * 计划到场时间 + */ + arrivalTime?: string; + + /** + * 计划完成时间 + */ + finishTime?: string; + + /** + * 计量单位 + */ + unit?: string; + + /** + * 计划数量 + */ + plan?: number; + + /** + * 实际数量 + */ + realQuantity?: number; + + /** + * 备注 + */ + remark?: string; +} + +export interface CailiaoshebeiQuery extends PageQuery { + /** + * 批次ID + */ + batchId?: string | number; + projectId?: string | number; + batchNumber?: string; + /** + * 供货商ID + */ + supplierId?: string | number; + + /** + * 供货商 + */ + supplier?: string; + + /** + * 设备材料名称 + */ + name?: string; + + /** + * 供货来源(字典) + */ + supply?: string; + + /** + * 规格型号 + */ + specification?: string; + + /** + * 特征描述 + */ + signalment?: string; + + /** + * 物料编码 + */ + materialCode?: string; + + /** + * 计划到场时间 + */ + arrivalTime?: string; + + /** + * 计划完成时间 + */ + finishTime?: string; + + /** + * 计量单位 + */ + unit?: string; + + /** + * 计划数量 + */ + plan?: number; + + /** + * 实际数量 + */ + realQuantity?: number; + + /** + * 日期范围参数 + */ + params?: any; +} diff --git a/src/api/materials/orderMaterials/index.ts b/src/api/materials/orderMaterials/index.ts new file mode 100644 index 0000000..c09c953 --- /dev/null +++ b/src/api/materials/orderMaterials/index.ts @@ -0,0 +1,99 @@ +import request from '@/utils/request'; +import { AxiosPromise } from 'axios'; +import { CailiaoshebeiVO, CailiaoshebeiForm, CailiaoshebeiQuery } from '@/api/materials/cailiaoshebei/types'; + +/** + * 查询物资-材料设备列表 + * @param query + * @returns {*} + */ + +export const listCailiaoshebei = (query?: CailiaoshebeiQuery): AxiosPromise => { + return request({ + url: '/cailiaoshebei/materialsorder/planExecutionTrackingList', + method: 'get', + params: query + }); +}; + +/** + * 查询物资-材料设备详细 + * @param id + */ +export const getCailiaoshebei = (id: string | number): AxiosPromise => { + return request({ + url: '/cailiaoshebei/cailiaoshebei/' + id, + method: 'get' + }); +}; + +/** + * 新增物资-材料设备 + * @param data + */ +export const addCailiaoshebei = (data: CailiaoshebeiForm) => { + return request({ + url: '/cailiaoshebei/cailiaoshebei', + method: 'post', + data: data + }); +}; + +/** + * 修改物资-材料设备 + * @param data + */ +export const updateCailiaoshebei = (data: CailiaoshebeiForm) => { + return request({ + url: '/cailiaoshebei/cailiaoshebei', + method: 'put', + data: data + }); +}; + +/** + * 删除物资-材料设备 + * @param id + */ +export const delCailiaoshebei = (id: string | number | Array) => { + return request({ + url: '/cailiaoshebei/cailiaoshebei/remove/' + id, + method: 'delete' + }); +}; + +/** + * 查询物资-材料设备批次列表 + * @param query + * @returns {*} + */ +export const listBatch = (query?: any): AxiosPromise => { + return request({ + url: '/cailiaoshebei/materialsorder/trackPcPlanList', + method: 'get', + params: query + }); +}; + +/** + * 新增物资-材料设备批次 + * @param data + */ +export const getBatch = (data: any) => { + return request({ + url: '/cailiaoshebei/cailiaoshebei/pcAdd', + method: 'post', + data: data + }); +}; + +/** + * 删除物资-材料设备批次 + * @param ids + */ +export const delBatch = (ids: string | number | Array) => { + return request({ + url: '/cailiaoshebei/cailiaoshebei/pcDelete/' + ids, + method: 'delete' + }); +}; diff --git a/src/api/materials/suppliesprice/index.ts b/src/api/materials/suppliesprice/index.ts new file mode 100644 index 0000000..87d4264 --- /dev/null +++ b/src/api/materials/suppliesprice/index.ts @@ -0,0 +1,99 @@ +import request from '@/utils/request'; +import { AxiosPromise } from 'axios'; +import { CailiaoshebeiVO, CailiaoshebeiForm, CailiaoshebeiQuery } from '@/api/materials/cailiaoshebei/types'; + +/** + * 查询物资-材料设备列表 + * @param query + * @returns {*} + */ + +export const listCailiaoshebei = (query?: CailiaoshebeiQuery): AxiosPromise => { + return request({ + url: '/cailiaoshebei/cailiaoshebei/listPlan', + method: 'get', + params: query + }); +}; + +/** + * 查询物资-材料设备详细 + * @param id + */ +export const getCailiaoshebei = (id: string | number): AxiosPromise => { + return request({ + url: '/cailiaoshebei/cailiaoshebei/getInfoPlanSon/' + id, + method: 'get' + }); +}; + +/** + * 新增物资-材料设备 + * @param data + */ +export const addCailiaoshebei = (data: CailiaoshebeiForm) => { + return request({ + url: '/cailiaoshebei/cailiaoshebei', + method: 'post', + data: data + }); +}; + +/** + * 修改物资-材料设备 + * @param data + */ +export const updateCailiaoshebei = (data: CailiaoshebeiForm) => { + return request({ + url: '/cailiaoshebei/cailiaoshebei/editPlanSon', + method: 'put', + data: data + }); +}; + +/** + * 删除物资-材料设备 + * @param id + */ +export const delCailiaoshebei = (id: string | number | Array) => { + return request({ + url: '/cailiaoshebei/cailiaoshebei/remove/' + id, + method: 'delete' + }); +}; + +/** + * 查询物资-材料设备批次列表 + * @param query + * @returns {*} + */ +export const listBatch = (query?: any): AxiosPromise => { + return request({ + url: '/cailiaoshebei/cailiaoshebei/pcPlanList', + method: 'get', + params: query + }); +}; + +/** + * 新增物资-材料设备批次 + * @param data + */ +export const getBatch = (data: any) => { + return request({ + url: '/cailiaoshebei/cailiaoshebei/pcAdd', + method: 'post', + data: data + }); +}; + +/** + * 删除物资-材料设备批次 + * @param ids + */ +export const delBatch = (ids: string | number | Array) => { + return request({ + url: '/cailiaoshebei/cailiaoshebei/pcDelete/' + ids, + method: 'delete' + }); +}; diff --git a/src/api/materials/suppliesprice/types.ts b/src/api/materials/suppliesprice/types.ts new file mode 100644 index 0000000..d3be5f9 --- /dev/null +++ b/src/api/materials/suppliesprice/types.ts @@ -0,0 +1,228 @@ +export interface CailiaoshebeiVO { + /** + * 主键ID + */ + id: string | number; + + /** + * 批次ID + */ + batchId: string | number; + + /** + * 供货商ID + */ + supplierId: string | number; + + /** + * 供货商 + */ + supplier: string; + + /** + * 设备材料名称 + */ + name: string; + + /** + * 供货来源(字典) + */ + supply: string; + + /** + * 规格型号 + */ + specification: string; + + /** + * 特征描述 + */ + signalment: string; + + /** + * 物料编码 + */ + materialCode: string; + + /** + * 计划到场时间 + */ + arrivalTime: string; + + /** + * 计划完成时间 + */ + finishTime: string; + + /** + * 计量单位 + */ + unit: string; + + /** + * 计划数量 + */ + plan: number; + + /** + * 实际数量 + */ + realQuantity: number; + + /** + * 备注 + */ + remark: string; +} + +export interface CailiaoshebeiForm extends BaseEntity { + /** + * 主键ID + */ + id?: string | number; + projectId?: string | number; + batchNumber?: string | number; + + /** + * 批次ID + */ + batchId?: string | number; + + /** + * 供货商ID + */ + supplierId?: string | number; + + /** + * 供货商 + */ + supplier?: string; + + /** + * 设备材料名称 + */ + name?: string; + + /** + * 供货来源(字典) + */ + supply?: string; + + /** + * 规格型号 + */ + specification?: string; + + /** + * 特征描述 + */ + signalment?: string; + + /** + * 物料编码 + */ + materialCode?: string; + + /** + * 计划到场时间 + */ + arrivalTime?: string; + + /** + * 计划完成时间 + */ + finishTime?: string; + + /** + * 计量单位 + */ + unit?: string; + + /** + * 计划数量 + */ + plan?: number; + + /** + * 实际数量 + */ + realQuantity?: number; + + /** + * 备注 + */ + remark?: string; +} + +export interface CailiaoshebeiQuery extends PageQuery { + /** + * 批次ID + */ + batchId?: string | number; + projectId?: string | number; + batchNumber?: string; + /** + * 供货商ID + */ + supplierId?: string | number; + + /** + * 供货商 + */ + supplier?: string; + + /** + * 设备材料名称 + */ + name?: string; + + /** + * 供货来源(字典) + */ + supply?: string; + + /** + * 规格型号 + */ + specification?: string; + + /** + * 特征描述 + */ + signalment?: string; + + /** + * 物料编码 + */ + materialCode?: string; + + /** + * 计划到场时间 + */ + arrivalTime?: string; + + /** + * 计划完成时间 + */ + finishTime?: string; + + /** + * 计量单位 + */ + unit?: string; + + /** + * 计划数量 + */ + plan?: number; + + /** + * 实际数量 + */ + realQuantity?: number; + + /** + * 日期范围参数 + */ + params?: any; +} diff --git a/src/api/out/constructionValue/index.ts b/src/api/out/constructionValue/index.ts new file mode 100644 index 0000000..dd84fe5 --- /dev/null +++ b/src/api/out/constructionValue/index.ts @@ -0,0 +1,63 @@ +import request from '@/utils/request'; +import { AxiosPromise } from 'axios'; +import { ConstructionValueVO, ConstructionValueForm, ConstructionValueQuery } from '@/api/out/constructionValue/types'; + +/** + * 查询施工产值列表 + * @param query + * @returns {*} + */ + +export const listConstructionValue = (query?: ConstructionValueQuery): AxiosPromise => { + return request({ + url: '/out/constructionValue/list', + method: 'get', + params: query + }); +}; + +/** + * 查询施工产值详细 + * @param id + */ +export const getConstructionValue = (id: string | number): AxiosPromise => { + return request({ + url: '/out/constructionValue/' + id, + method: 'get' + }); +}; + +/** + * 新增施工产值 + * @param data + */ +export const addConstructionValue = (data: ConstructionValueForm) => { + return request({ + url: '/out/constructionValue', + method: 'post', + data: data + }); +}; + +/** + * 修改施工产值 + * @param data + */ +export const updateConstructionValue = (data: ConstructionValueForm) => { + return request({ + url: '/out/constructionValue', + method: 'put', + data: data + }); +}; + +/** + * 删除施工产值 + * @param id + */ +export const delConstructionValue = (id: string | number | Array) => { + return request({ + url: '/out/constructionValue/' + id, + method: 'delete' + }); +}; diff --git a/src/api/out/constructionValue/types.ts b/src/api/out/constructionValue/types.ts new file mode 100644 index 0000000..a4c00cf --- /dev/null +++ b/src/api/out/constructionValue/types.ts @@ -0,0 +1,156 @@ +export interface ConstructionValueVO { + /** + * 主键ID + */ + id: string | number; + + /** + * 项目ID + */ + projectId: string | number; + + /** + * 方阵id + */ + matrixId: string | number; + + /** + * 分项工程id + */ + progressCategoryId: string | number; + + /** + * 人工填报数量 + */ + artificialNum: number; + + /** + * 无人机识别数量 + */ + uavNum: number; + + /** + * 确认数量 + */ + confirmNum: number; + + /** + * 产值 + */ + outValue: number; + + /** + * 上报日期 + */ + reportDate: string; + + /** + * 审核状态 + */ + auditStatus: string; +} + +export interface ConstructionValueForm extends BaseEntity { + /** + * 主键ID + */ + id?: string | number; + planDate?: string; + planNum?: number; + /** + * 项目ID + */ + projectId?: string | number; + reportDateId?: string | number; + /** + * 方阵id + */ + matrixId?: string | number; + + /** + * 分项工程id + */ + progressCategoryId?: string | number; + + /** + * 人工填报数量 + */ + artificialNum?: number; + + /** + * 无人机识别数量 + */ + uavNum?: number; + + /** + * 确认数量 + */ + confirmNum?: number; + + /** + * 产值 + */ + outValue?: number; + + /** + * 上报日期 + */ + reportDate?: string; + + /** + * 审核状态 + */ + auditStatus?: string; +} + +export interface ConstructionValueQuery extends PageQuery { + /** + * 项目ID + */ + projectId?: string | number; + + /** + * 方阵id + */ + matrixId?: string | number; + + /** + * 分项工程id + */ + progressCategoryId?: string | number; + + /** + * 人工填报数量 + */ + artificialNum?: number; + + /** + * 无人机识别数量 + */ + uavNum?: number; + + /** + * 确认数量 + */ + confirmNum?: number; + + /** + * 产值 + */ + outValue?: number; + + /** + * 上报日期 + */ + reportDate?: string; + + /** + * 审核状态 + */ + auditStatus?: string; + + /** + * 日期范围参数 + */ + params?: any; +} diff --git a/src/api/out/designCompletion/index.ts b/src/api/out/designCompletion/index.ts new file mode 100644 index 0000000..c4ef26f --- /dev/null +++ b/src/api/out/designCompletion/index.ts @@ -0,0 +1,63 @@ +import request from '@/utils/request'; +import { AxiosPromise } from 'axios'; +import { DesignCompletionVO, DesignCompletionForm, DesignCompletionQuery } from '@/api/out/designCompletion/types'; + +/** + * 查询设计完工产值列表 + * @param query + * @returns {*} + */ + +export const listDesignCompletion = (query?: DesignCompletionQuery): AxiosPromise => { + return request({ + url: '/out/designCompletion/list', + method: 'get', + params: query + }); +}; + +/** + * 查询设计完工产值详细 + * @param id + */ +export const getDesignCompletion = (id: string | number): AxiosPromise => { + return request({ + url: '/out/designCompletion/' + id, + method: 'get' + }); +}; + +/** + * 新增设计完工产值 + * @param data + */ +export const addDesignCompletion = (data: DesignCompletionForm) => { + return request({ + url: '/out/designCompletion', + method: 'post', + data: data + }); +}; + +/** + * 修改设计完工产值 + * @param data + */ +export const updateDesignCompletion = (data: DesignCompletionForm) => { + return request({ + url: '/out/designCompletion', + method: 'put', + data: data + }); +}; + +/** + * 删除设计完工产值 + * @param id + */ +export const delDesignCompletion = (id: string | number | Array) => { + return request({ + url: '/out/designCompletion/' + id, + method: 'delete' + }); +}; diff --git a/src/api/out/designCompletion/types.ts b/src/api/out/designCompletion/types.ts new file mode 100644 index 0000000..2a58e24 --- /dev/null +++ b/src/api/out/designCompletion/types.ts @@ -0,0 +1,86 @@ +export interface DesignCompletionVO { + /** + * 主键ID + */ + id: string | number; + + /** + * 项目ID + */ + projectId: string | number; + + /** + * 产值 + */ + outValue: number; + + /** + * 完工月份(YYYY-MM) + */ + completeMonth: string; + + /** + * 审核状态 + */ + auditStatus: string; + +} + +export interface DesignCompletionForm extends BaseEntity { + /** + * 主键ID + */ + id?: string | number; + + /** + * 项目ID + */ + projectId?: string | number; + + /** + * 产值 + */ + outValue?: number; + + /** + * 完工月份(YYYY-MM) + */ + completeMonth?: string; + + /** + * 审核状态 + */ + auditStatus?: string; + +} + +export interface DesignCompletionQuery extends PageQuery { + + /** + * 项目ID + */ + projectId?: string | number; + + /** + * 产值 + */ + outValue?: number; + + /** + * 完工月份(YYYY-MM) + */ + completeMonth?: string; + + /** + * 审核状态 + */ + auditStatus?: string; + + /** + * 日期范围参数 + */ + params?: any; +} + + + diff --git a/src/api/out/monthPlan/index.ts b/src/api/out/monthPlan/index.ts new file mode 100644 index 0000000..b902124 --- /dev/null +++ b/src/api/out/monthPlan/index.ts @@ -0,0 +1,100 @@ +import request from '@/utils/request'; +import { AxiosPromise } from 'axios'; +import { MonthPlanVO, MonthPlanForm, MonthPlanQuery } from '@/api/out/monthPlan/types'; + +/** + * 查询月度产值计划列表 + * @param query + * @returns {*} + */ + +export const listMonthPlan = (query?: MonthPlanQuery): AxiosPromise => { + return request({ + url: '/out/monthPlan/list', + method: 'get', + params: query + }); +}; + +/** + * 查询月度产值计划详细 + * @param id + */ +export const getMonthPlan = (id: string | number): AxiosPromise => { + return request({ + url: '/out/monthPlan/' + id, + method: 'get' + }); +}; + +/** + * 新增月度产值计划 + * @param data + */ +export const addMonthPlan = (data: MonthPlanForm) => { + return request({ + url: '/out/monthPlan', + method: 'post', + data: data + }); +}; + +/** + * 修改月度产值计划 + * @param data + */ +export const updateMonthPlan = (data: MonthPlanForm) => { + return request({ + url: '/out/monthPlan', + method: 'put', + data: data + }); +}; + +/** + * 删除月度产值计划 + * @param id + */ +export const delMonthPlan = (id: string | number | Array) => { + return request({ + url: '/out/monthPlan/' + id, + method: 'delete' + }); +}; + +/** + * 获取月度产值计划 + * @param query + * @returns {*} + */ +export const getMonth = (query: any): AxiosPromise => { + return request({ + url: '/out/monthPlan/info', + method: 'get', + params: query + }); +}; + +/** + * 检查月度产值计划是否提交 + * @param id + * @returns {*} + */ +export const isSubmit = (id): AxiosPromise => { + return request({ + url: '/out/monthPlan/isSubmit/' + id, + method: 'get' + }); +}; + +/** + * 查询月度产值计划详细(审批) + * @param id + */ +export const getMonthInfo = (query): AxiosPromise => { + return request({ + url: '/out/monthPlan/monthInfo', + method: 'get', + params: query + }); +}; diff --git a/src/api/out/monthPlan/types.ts b/src/api/out/monthPlan/types.ts new file mode 100644 index 0000000..3144767 --- /dev/null +++ b/src/api/out/monthPlan/types.ts @@ -0,0 +1,146 @@ +export interface MonthPlanVO { + /** + * 主键ID + */ + id: string | number; + + /** + * 项目ID + */ + projectId: string | number; + + /** + * 计划产值 + */ + planValue: number; + + /** + * 完成产值 + */ + completeValue: number; + + /** + * 差额 + */ + differenceValue: number; + + /** + * 计划月份(YYYY-MM) + */ + planMonth: string; + + /** + * 1-设计 2-采购 3-施工 + */ + valueType: string; + + /** + * 计划审核状态 + */ + planAuditStatus: string; + + /** + * 完成审核状态 + */ + completeAuditStatus: string; + +} + +export interface MonthPlanForm extends BaseEntity { + /** + * 主键ID + */ + id?: string | number; + + /** + * 项目ID + */ + projectId?: string | number; + + /** + * 计划产值 + */ + planValue?: number; + + /** + * 完成产值 + */ + completeValue?: number; + + /** + * 差额 + */ + differenceValue?: number; + + /** + * 计划月份(YYYY-MM) + */ + planMonth?: string; + + /** + * 1-设计 2-采购 3-施工 + */ + valueType?: string; + + /** + * 计划审核状态 + */ + planAuditStatus?: string; + + /** + * 完成审核状态 + */ + completeAuditStatus?: string; + +} + +export interface MonthPlanQuery extends PageQuery { + + /** + * 项目ID + */ + projectId?: string | number; + + /** + * 计划产值 + */ + planValue?: number; + + /** + * 完成产值 + */ + completeValue?: number; + + /** + * 差额 + */ + differenceValue?: number; + + /** + * 计划月份(YYYY-MM) + */ + planMonth?: string; + + /** + * 1-设计 2-采购 3-施工 + */ + valueType?: string; + + /** + * 计划审核状态 + */ + planAuditStatus?: string; + + /** + * 完成审核状态 + */ + completeAuditStatus?: string; + + /** + * 日期范围参数 + */ + params?: any; +} + + + diff --git a/src/api/out/monthPlanAudit/index.ts b/src/api/out/monthPlanAudit/index.ts new file mode 100644 index 0000000..7aba502 --- /dev/null +++ b/src/api/out/monthPlanAudit/index.ts @@ -0,0 +1,63 @@ +import request from '@/utils/request'; +import { AxiosPromise } from 'axios'; +import { MonthPlanAuditVO, MonthPlanAuditForm, MonthPlanAuditQuery } from '@/api/out/monthPlanAudit/types'; + +/** + * 查询审核通过月度产值计划列表 + * @param query + * @returns {*} + */ + +export const listMonthPlanAudit = (query?: MonthPlanAuditQuery): AxiosPromise => { + return request({ + url: '/out/monthPlanAudit/list', + method: 'get', + params: query + }); +}; + +/** + * 查询审核通过月度产值计划详细 + * @param id + */ +export const getMonthPlanAudit = (id: string | number): AxiosPromise => { + return request({ + url: '/out/monthPlanAudit/' + id, + method: 'get' + }); +}; + +/** + * 新增审核通过月度产值计划 + * @param data + */ +export const addMonthPlanAudit = (data: MonthPlanAuditForm) => { + return request({ + url: '/out/monthPlanAudit', + method: 'post', + data: data + }); +}; + +/** + * 修改审核通过月度产值计划 + * @param data + */ +export const updateMonthPlanAudit = (data: MonthPlanAuditForm) => { + return request({ + url: '/out/monthPlanAudit', + method: 'put', + data: data + }); +}; + +/** + * 删除审核通过月度产值计划 + * @param id + */ +export const delMonthPlanAudit = (id: string | number | Array) => { + return request({ + url: '/out/monthPlanAudit/' + id, + method: 'delete' + }); +}; diff --git a/src/api/out/monthPlanAudit/types.ts b/src/api/out/monthPlanAudit/types.ts new file mode 100644 index 0000000..b0a45d5 --- /dev/null +++ b/src/api/out/monthPlanAudit/types.ts @@ -0,0 +1,116 @@ +export interface MonthPlanAuditVO { + /** + * 主键ID + */ + id: string | number; + + /** + * 项目ID + */ + projectId: string | number; + + /** + * 设计产值 + */ + designValue: number; + + /** + * 采购产值 + */ + purchaseValue: number; + + /** + * 施工产值 + */ + constructionValue: number; + + /** + * 总产值 + */ + totalValue: number; + + /** + * 计划月份(YYYY-MM) + */ + planMonth: string; + +} + +export interface MonthPlanAuditForm extends BaseEntity { + /** + * 主键ID + */ + id?: string | number; + + /** + * 项目ID + */ + projectId?: string | number; + + /** + * 设计产值 + */ + designValue?: number; + + /** + * 采购产值 + */ + purchaseValue?: number; + + /** + * 施工产值 + */ + constructionValue?: number; + + /** + * 总产值 + */ + totalValue?: number; + + /** + * 计划月份(YYYY-MM) + */ + planMonth?: string; + +} + +export interface MonthPlanAuditQuery extends PageQuery { + + /** + * 项目ID + */ + projectId?: string | number; + + /** + * 设计产值 + */ + designValue?: number; + + /** + * 采购产值 + */ + purchaseValue?: number; + + /** + * 施工产值 + */ + constructionValue?: number; + + /** + * 总产值 + */ + totalValue?: number; + + /** + * 计划月份(YYYY-MM) + */ + planMonth?: string; + + /** + * 日期范围参数 + */ + params?: any; +} + + + diff --git a/src/api/out/outDesignTable/index.ts b/src/api/out/outDesignTable/index.ts new file mode 100644 index 0000000..15ccfa6 --- /dev/null +++ b/src/api/out/outDesignTable/index.ts @@ -0,0 +1,9 @@ +import request from '@/utils/request'; + +export function listOutTable(query: any) { + return request({ + url: '/out/table/monthlyPurchase', + method: 'get', + params: query + }); +} diff --git a/src/api/out/outDesignTableVS/index.ts b/src/api/out/outDesignTableVS/index.ts new file mode 100644 index 0000000..788d797 --- /dev/null +++ b/src/api/out/outDesignTableVS/index.ts @@ -0,0 +1,9 @@ +import request from '@/utils/request'; + +export function listOutTable(query: any) { + return request({ + url: '/out/table/comparisonOfCompletionAndSettlement', + method: 'get', + params: query + }); +} diff --git a/src/api/out/outTable/index.ts b/src/api/out/outTable/index.ts new file mode 100644 index 0000000..b0e4760 --- /dev/null +++ b/src/api/out/outTable/index.ts @@ -0,0 +1,9 @@ +import request from '@/utils/request'; + +export function listOutTable(query: any) { + return request({ + url: '/out/table/monthlyConstruct', + method: 'get', + params: query + }); +} diff --git a/src/api/out/ownerSettlement/index.ts b/src/api/out/ownerSettlement/index.ts new file mode 100644 index 0000000..6f434a6 --- /dev/null +++ b/src/api/out/ownerSettlement/index.ts @@ -0,0 +1,9 @@ +import request from '@/utils/request'; + +export function listOutTable(query: any) { + return request({ + url: '/out/table/comparisonOfOwnerAndSub', + method: 'get', + params: query + }); +} diff --git a/src/api/out/settlementValueOwner/index.ts b/src/api/out/settlementValueOwner/index.ts new file mode 100644 index 0000000..45fc401 --- /dev/null +++ b/src/api/out/settlementValueOwner/index.ts @@ -0,0 +1,63 @@ +import request from '@/utils/request'; +import { AxiosPromise } from 'axios'; +import { SettlementValueOwnerVO, SettlementValueOwnerForm, SettlementValueOwnerQuery } from '@/api/out/settlementValueOwner/types'; + +/** + * 查询结算产值登记(对甲)列表 + * @param query + * @returns {*} + */ + +export const listSettlementValueOwner = (query?: SettlementValueOwnerQuery): AxiosPromise => { + return request({ + url: '/out/settlementValueOwner/list', + method: 'get', + params: query + }); +}; + +/** + * 查询结算产值登记(对甲)详细 + * @param id + */ +export const getSettlementValueOwner = (id: string | number): AxiosPromise => { + return request({ + url: '/out/settlementValueOwner/' + id, + method: 'get' + }); +}; + +/** + * 新增结算产值登记(对甲) + * @param data + */ +export const addSettlementValueOwner = (data: SettlementValueOwnerForm) => { + return request({ + url: '/out/settlementValueOwner', + method: 'post', + data: data + }); +}; + +/** + * 修改结算产值登记(对甲) + * @param data + */ +export const updateSettlementValueOwner = (data: SettlementValueOwnerForm) => { + return request({ + url: '/out/settlementValueOwner', + method: 'put', + data: data + }); +}; + +/** + * 删除结算产值登记(对甲) + * @param id + */ +export const delSettlementValueOwner = (id: string | number | Array) => { + return request({ + url: '/out/settlementValueOwner/' + id, + method: 'delete' + }); +}; diff --git a/src/api/out/settlementValueOwner/types.ts b/src/api/out/settlementValueOwner/types.ts new file mode 100644 index 0000000..f56019f --- /dev/null +++ b/src/api/out/settlementValueOwner/types.ts @@ -0,0 +1,96 @@ +export interface SettlementValueOwnerVO { + /** + * 主键ID + */ + id: string | number; + + /** + * 项目ID + */ + projectId: string | number; + + /** + * 结算产值 + */ + settlementValue: number; + + /** + * 1-设计 2-采购 3-施工 + */ + valueType: string; + + /** + * 说明 + */ + remark: string; + + /** + * 结算日期 + */ + settlementDate: string; + +} + +export interface SettlementValueOwnerForm extends BaseEntity { + /** + * 主键ID + */ + id?: string | number; + + /** + * 项目ID + */ + projectId?: string | number; + + /** + * 结算产值 + */ + settlementValue?: number; + + /** + * 1-设计 2-采购 3-施工 + */ + valueType?: string; + + /** + * 说明 + */ + remark?: string; + + /** + * 结算日期 + */ + settlementDate?: string; + +} + +export interface SettlementValueOwnerQuery extends PageQuery { + + /** + * 项目ID + */ + projectId?: string | number; + + /** + * 结算产值 + */ + settlementValue?: number; + + /** + * 1-设计 2-采购 3-施工 + */ + valueType?: string; + + /** + * 结算日期 + */ + settlementDate?: string; + + /** + * 日期范围参数 + */ + params?: any; +} + + + diff --git a/src/api/out/settlementValueSubcontract/index.ts b/src/api/out/settlementValueSubcontract/index.ts new file mode 100644 index 0000000..4daa10c --- /dev/null +++ b/src/api/out/settlementValueSubcontract/index.ts @@ -0,0 +1,63 @@ +import request from '@/utils/request'; +import { AxiosPromise } from 'axios'; +import { SettlementValueSubcontractVO, SettlementValueSubcontractForm, SettlementValueSubcontractQuery } from '@/api/out/settlementValueSubcontract/types'; + +/** + * 查询结算产值登记(对乙)列表 + * @param query + * @returns {*} + */ + +export const listSettlementValueSubcontract = (query?: SettlementValueSubcontractQuery): AxiosPromise => { + return request({ + url: '/out/settlementValueSubcontract/list', + method: 'get', + params: query + }); +}; + +/** + * 查询结算产值登记(对乙)详细 + * @param id + */ +export const getSettlementValueSubcontract = (id: string | number): AxiosPromise => { + return request({ + url: '/out/settlementValueSubcontract/' + id, + method: 'get' + }); +}; + +/** + * 新增结算产值登记(对乙) + * @param data + */ +export const addSettlementValueSubcontract = (data: SettlementValueSubcontractForm) => { + return request({ + url: '/out/settlementValueSubcontract', + method: 'post', + data: data + }); +}; + +/** + * 修改结算产值登记(对乙) + * @param data + */ +export const updateSettlementValueSubcontract = (data: SettlementValueSubcontractForm) => { + return request({ + url: '/out/settlementValueSubcontract', + method: 'put', + data: data + }); +}; + +/** + * 删除结算产值登记(对乙) + * @param id + */ +export const delSettlementValueSubcontract = (id: string | number | Array) => { + return request({ + url: '/out/settlementValueSubcontract/' + id, + method: 'delete' + }); +}; diff --git a/src/api/out/settlementValueSubcontract/types.ts b/src/api/out/settlementValueSubcontract/types.ts new file mode 100644 index 0000000..9dd6f6e --- /dev/null +++ b/src/api/out/settlementValueSubcontract/types.ts @@ -0,0 +1,201 @@ +export interface SettlementValueSubcontractVO { + /** + * 主键ID + */ + id: string | number; + + /** + * 项目ID + */ + projectId: string | number; + + /** + * 单据编码 + */ + documentCode: string; + + /** + * 结算说明 + */ + settlementDescribe: string; + + /** + * 结算周期(YYYY-MM) + */ + settlementMonth: string; + + /** + * 结算日期 + */ + settlementDate: string; + + /** + * 分包单位ID + */ + contractorId: string | number; + + /** + * 分包单位名 + */ + contractorName: string; + + /** + * 结算产值 + */ + settlementValue: number; + + /** + * 说明 + */ + remark: string; + + /** + * 合同编码 + */ + contractCode: string; + + /** + * 合同名称 + */ + contractName: string; + + /** + * 合同地址 + */ + contractUrl: string; +} + +export interface SettlementValueSubcontractForm extends BaseEntity { + /** + * 主键ID + */ + id?: string | number; + /** + * 产值类型 + */ + valueType?: string; + /** + * 项目ID + */ + projectId?: string | number; + + /** + * 单据编码 + */ + documentCode?: string; + + /** + * 结算说明 + */ + settlementDescribe?: string; + + /** + * 结算周期(YYYY-MM) + */ + settlementMonth?: string; + + /** + * 结算日期 + */ + settlementDate?: string; + + /** + * 分包单位ID + */ + contractorId?: string | number; + + /** + * 分包单位名 + */ + contractorName?: string; + + /** + * 结算产值 + */ + settlementValue?: number; + + /** + * 说明 + */ + remark?: string; + + /** + * 合同编码 + */ + contractCode?: string; + + /** + * 合同名称 + */ + contractName?: string; + + /** + * 合同地址 + */ + contractUrl?: string; +} + +export interface SettlementValueSubcontractQuery extends PageQuery { + /** + * 项目ID + */ + projectId?: string | number; + /** + * 产值类型 + */ + valueType?: string; + /** + * 单据编码 + */ + documentCode?: string; + + /** + * 结算说明 + */ + settlementDescribe?: string; + + /** + * 结算周期(YYYY-MM) + */ + settlementMonth?: string; + + /** + * 结算日期 + */ + settlementDate?: string; + + /** + * 分包单位ID + */ + contractorId?: string | number; + + /** + * 分包单位名 + */ + contractorName?: string; + + /** + * 结算产值 + */ + settlementValue?: number; + + /** + * 合同编码 + */ + contractCode?: string; + + /** + * 合同名称 + */ + contractName?: string; + + /** + * 合同地址 + */ + contractUrl?: string; + + /** + * 日期范围参数 + */ + params?: any; +} diff --git a/src/api/out/valueAllocation/index.ts b/src/api/out/valueAllocation/index.ts new file mode 100644 index 0000000..5570fee --- /dev/null +++ b/src/api/out/valueAllocation/index.ts @@ -0,0 +1,63 @@ +import request from '@/utils/request'; +import { AxiosPromise } from 'axios'; +import { ValueAllocationVO, ValueAllocationForm, ValueAllocationQuery } from '@/api/out/valueAllocation/types'; + +/** + * 查询项目总产值分配列表 + * @param query + * @returns {*} + */ + +export const listValueAllocation = (query?: ValueAllocationQuery): AxiosPromise => { + return request({ + url: '/out/valueAllocation/list', + method: 'get', + params: query + }); +}; + +/** + * 查询项目总产值分配详细 + * @param id + */ +export const getValueAllocation = (id: string | number): AxiosPromise => { + return request({ + url: '/out/valueAllocation/' + id, + method: 'get' + }); +}; + +/** + * 新增项目总产值分配 + * @param data + */ +export const addValueAllocation = (data: ValueAllocationForm) => { + return request({ + url: '/out/valueAllocation', + method: 'post', + data: data + }); +}; + +/** + * 修改项目总产值分配 + * @param data + */ +export const updateValueAllocation = (data: ValueAllocationForm) => { + return request({ + url: '/out/valueAllocation', + method: 'put', + data: data + }); +}; + +/** + * 删除项目总产值分配 + * @param id + */ +export const delValueAllocation = (id: string | number | Array) => { + return request({ + url: '/out/valueAllocation/' + id, + method: 'delete' + }); +}; diff --git a/src/api/out/valueAllocation/types.ts b/src/api/out/valueAllocation/types.ts new file mode 100644 index 0000000..efc8ef3 --- /dev/null +++ b/src/api/out/valueAllocation/types.ts @@ -0,0 +1,155 @@ +export interface ValueAllocationVO { + /** + * 主键ID + */ + id: string | number; + + /** + * 项目ID + */ + projectId: string | number; + + /** + * 对甲设计产值 + */ + ownerDesignValue: number; + + /** + * 对甲采购产值 + */ + ownerPurchaseValue: number; + + /** + * 对甲施工产值 + */ + ownerConstructionValue: number; + + /** + * 对甲总产值 + */ + ownerTotalValue: number; + + /** + * 对乙设计产值 + */ + subDesignValue: number; + + /** + * 对乙采购产值 + */ + subPurchaseValue: number; + + /** + * 对乙施工产值 + */ + subConstructionValue: number; + + /** + * 对乙总产值 + */ + subTotalValue: number; +} + +export interface ValueAllocationForm extends BaseEntity { + /** + * 主键ID + */ + id?: string | number; + valueType?: number; + /** + * 项目ID + */ + projectId?: string | number; + + /** + * 对甲设计产值 + */ + ownerDesignValue?: number; + + /** + * 对甲采购产值 + */ + ownerPurchaseValue?: number; + + /** + * 对甲施工产值 + */ + ownerConstructionValue?: number; + + /** + * 对甲总产值 + */ + ownerTotalValue?: number; + + /** + * 对乙设计产值 + */ + subDesignValue?: number; + + /** + * 对乙采购产值 + */ + subPurchaseValue?: number; + + /** + * 对乙施工产值 + */ + subConstructionValue?: number; + + /** + * 对乙总产值 + */ + subTotalValue?: number; +} + +export interface ValueAllocationQuery extends PageQuery { + /** + * 项目ID + */ + projectId?: string | number; + valueType?: number; + /** + * 对甲设计产值 + */ + ownerDesignValue?: number; + + /** + * 对甲采购产值 + */ + ownerPurchaseValue?: number; + + /** + * 对甲施工产值 + */ + ownerConstructionValue?: number; + + /** + * 对甲总产值 + */ + ownerTotalValue?: number; + + /** + * 对乙设计产值 + */ + subDesignValue?: number; + + /** + * 对乙采购产值 + */ + subPurchaseValue?: number; + + /** + * 对乙施工产值 + */ + subConstructionValue?: number; + + /** + * 对乙总产值 + */ + subTotalValue?: number; + + /** + * 日期范围参数 + */ + params?: any; +} diff --git a/src/api/progress/constructionSchedulePlan/index.ts b/src/api/progress/constructionSchedulePlan/index.ts new file mode 100644 index 0000000..3a7352d --- /dev/null +++ b/src/api/progress/constructionSchedulePlan/index.ts @@ -0,0 +1,63 @@ +import request from '@/utils/request'; +import { AxiosPromise } from 'axios'; +import { ConstructionSchedulePlanVO, ConstructionSchedulePlanForm, ConstructionSchedulePlanQuery } from '@/api/progress/constructionSchedulePlan/types'; + +/** + * 查询施工进度计划列表 + * @param query + * @returns {*} + */ + +export const listConstructionSchedulePlan = (query?: ConstructionSchedulePlanQuery): AxiosPromise => { + return request({ + url: '/progress/constructionSchedulePlan/list', + method: 'get', + params: query + }); +}; + +/** + * 查询施工进度计划详细 + * @param id + */ +export const getConstructionSchedulePlan = (id: string | number): AxiosPromise => { + return request({ + url: '/progress/constructionSchedulePlan/' + id, + method: 'get' + }); +}; + +/** + * 新增施工进度计划 + * @param data + */ +export const addConstructionSchedulePlan = (data: ConstructionSchedulePlanForm) => { + return request({ + url: '/progress/constructionSchedulePlan', + method: 'post', + data: data + }); +}; + +/** + * 修改施工进度计划 + * @param data + */ +export const updateConstructionSchedulePlan = (data: ConstructionSchedulePlanForm) => { + return request({ + url: '/progress/constructionSchedulePlan', + method: 'put', + data: data + }); +}; + +/** + * 删除施工进度计划 + * @param id + */ +export const delConstructionSchedulePlan = (id: string | number | Array) => { + return request({ + url: '/progress/constructionSchedulePlan/' + id, + method: 'delete' + }); +}; diff --git a/src/api/progress/constructionSchedulePlan/types.ts b/src/api/progress/constructionSchedulePlan/types.ts new file mode 100644 index 0000000..a75768b --- /dev/null +++ b/src/api/progress/constructionSchedulePlan/types.ts @@ -0,0 +1,145 @@ +export interface ConstructionSchedulePlanVO { + /** + * 主键ID + */ + id: string | number; + + /** + * 项目ID + */ + projectId: string | number; + + /** + * 父ID + */ + parentId: string | number; + + /** + * 节点名称 + */ + nodeName: string; + + /** + * 对应项目结构 + */ + projectStructure: number; + + /** + * 预计开始时间 + */ + planStartDate: string; + + /** + * 预计结束时间 + */ + planEndDate: string; + + /** + * 实际开始时间 + */ + practicalStartDate: string; + + /** + * 实际结束时间 + */ + practicalEndDate: string; + + /** + * 状态 + */ + status: string; + + /** + * 备注 + */ + remark: string; + + /** + * 子对象 + */ + children: ConstructionSchedulePlanVO[]; +} + +export interface ConstructionSchedulePlanForm extends BaseEntity { + /** + * 主键ID + */ + id?: string | number; + parentId?: string | number; + /** + * 项目ID + */ + projectId?: string | number; + + /** + * 父ID + */ + pId?: string | number; + + /** + * 节点名称 + */ + nodeName?: string; + + /** + * 对应项目结构 + */ + projectStructure?: number; + + /** + * 预计开始时间 + */ + planStartDate?: string; + + /** + * 预计结束时间 + */ + planEndDate?: string; + + /** + * 实际开始时间 + */ + practicalStartDate?: string; + + /** + * 实际结束时间 + */ + practicalEndDate?: string; + + /** + * 状态 + */ + status?: string; + + /** + * 备注 + */ + remark?: string; +} + +export interface ConstructionSchedulePlanQuery { + /** + * 项目ID + */ + projectId?: string | number; + + /** + * 父ID + */ + parentId?: string | number; + + /** + * 节点名称 + */ + nodeName?: string; + + /** + * 状态 + */ + status?: string; + + /** + * 日期范围参数 + */ + params?: any; +} diff --git a/src/api/progress/plan/index.ts b/src/api/progress/plan/index.ts index 6abf33d..c7c43a8 100644 --- a/src/api/progress/plan/index.ts +++ b/src/api/progress/plan/index.ts @@ -119,6 +119,18 @@ export const workScheduleList = (query: workScheduleListQuery): AxiosPromise => { + return request({ + url: '/progress/progressPlanDetail/list', + method: 'get', + params: { progressCategoryId: id } + }); +}; + /** * 获取进度类别坐标信息 * @param params diff --git a/src/api/progress/progressCategory/index.ts b/src/api/progress/progressCategory/index.ts new file mode 100644 index 0000000..d525264 --- /dev/null +++ b/src/api/progress/progressCategory/index.ts @@ -0,0 +1,63 @@ +import request from '@/utils/request'; +import { AxiosPromise } from 'axios'; +import { ProgressCategoryVO, ProgressCategoryForm, ProgressCategoryQuery } from '@/api/progress/progressCategory/types'; + +/** + * 查询分项工程单价列表 + * @param query + * @returns {*} + */ + +export const listProgressCategory = (query?: ProgressCategoryQuery): AxiosPromise => { + return request({ + url: '/progress/progressCategory/list', + method: 'get', + params: query + }); +}; + +/** + * 查询分项工程单价详细 + * @param id + */ +export const getProgressCategory = (id: string | number): AxiosPromise => { + return request({ + url: '/progress/progressCategory/' + id, + method: 'get' + }); +}; + +/** + * 新增分项工程单价 + * @param data + */ +export const addProgressCategory = (data: ProgressCategoryForm) => { + return request({ + url: '/progress/progressCategory', + method: 'post', + data: data + }); +}; + +/** + * 修改分项工程单价 + * @param data + */ +export const updateProgressCategory = (data: ProgressCategoryForm) => { + return request({ + url: '/progress/progressCategory/price', + method: 'post', + data: data + }); +}; + +/** + * 删除分项工程单价 + * @param id + */ +export const delProgressCategory = (id: string | number | Array) => { + return request({ + url: '/progress/progressCategory/' + id, + method: 'delete' + }); +}; diff --git a/src/api/progress/progressCategory/types.ts b/src/api/progress/progressCategory/types.ts new file mode 100644 index 0000000..6e05749 --- /dev/null +++ b/src/api/progress/progressCategory/types.ts @@ -0,0 +1,265 @@ +export interface ProgressCategoryVO { + /** + * 主键id + */ + id: string | number; + + /** + * 父类别id + */ + parentId: string | number; + + /** + * 项目id + */ + projectId: string | number; + + /** + * 方阵id + */ + matrixId: string | number; + + /** + * 方阵名称 + */ + matrixName: string; + + /** + * 类别名称 + */ + name: string; + + /** + * 计量方式(0无 1数量 2百分比) + */ + unitType: string; + + /** + * 计量单位 + */ + unit: string; + + /** + * 综合单价 + */ + unitPrice: number; + + /** + * 产值金额 + */ + outputValue: number; + + /** + * 总数量/百分比 + */ + total: number; + + /** + * 已完成数量/百分比 + */ + completed: number; + + /** + * 计划总数量/百分比 + */ + planTotal: number; + + /** + * 是否超期(0否 1是) + */ + isDelay: string; + + /** + * 工作类型 + */ + workType: string; + + /** + * 完成状态(0未开始 1进行中 2已完成) + */ + status: string; + + /** + * 备注 + */ + remark: string; + + /** + * 子对象 + */ + children: ProgressCategoryVO[]; +} + +export interface ProgressCategoryForm extends BaseEntity { + /** + * 主键id + */ + id?: string | number; + + /** + * 父类别id + */ + parentId?: string | number; + + /** + * 项目id + */ + projectId?: string | number; + + /** + * 方阵id + */ + matrixId?: string | number; + + /** + * 方阵名称 + */ + matrixName?: string; + + /** + * 类别名称 + */ + name?: string; + + /** + * 计量方式(0无 1数量 2百分比) + */ + unitType?: string; + + /** + * 计量单位 + */ + unit?: string; + + /** + * 综合单价 + */ + unitPrice?: number; + + /** + * 产值金额 + */ + outputValue?: number; + + /** + * 总数量/百分比 + */ + total?: number; + + /** + * 已完成数量/百分比 + */ + completed?: number; + + /** + * 计划总数量/百分比 + */ + planTotal?: number; + + /** + * 是否超期(0否 1是) + */ + isDelay?: string; + + /** + * 工作类型 + */ + workType?: string; + + /** + * 完成状态(0未开始 1进行中 2已完成) + */ + status?: string; + + /** + * 备注 + */ + remark?: string; + +} + +export interface ProgressCategoryQuery { + + /** + * 父类别id + */ + parentId?: string | number; + + /** + * 项目id + */ + projectId?: string | number; + + /** + * 方阵id + */ + matrixId?: string | number; + + /** + * 方阵名称 + */ + matrixName?: string; + + /** + * 类别名称 + */ + name?: string; + + /** + * 计量方式(0无 1数量 2百分比) + */ + unitType?: string; + + /** + * 计量单位 + */ + unit?: string; + + /** + * 综合单价 + */ + unitPrice?: number; + + /** + * 产值金额 + */ + outputValue?: number; + + /** + * 总数量/百分比 + */ + total?: number; + + /** + * 已完成数量/百分比 + */ + completed?: number; + + /** + * 计划总数量/百分比 + */ + planTotal?: number; + + /** + * 是否超期(0否 1是) + */ + isDelay?: string; + + /** + * 工作类型 + */ + workType?: string; + + /** + * 完成状态(0未开始 1进行中 2已完成) + */ + status?: string; + + /** + * 日期范围参数 + */ + params?: any; +} + + + diff --git a/src/api/quality/qualityInspection/types.ts b/src/api/quality/qualityInspection/types.ts index a7cb8e7..0b6de97 100644 --- a/src/api/quality/qualityInspection/types.ts +++ b/src/api/quality/qualityInspection/types.ts @@ -53,6 +53,7 @@ export interface QualityInspectionForm extends BaseEntity { * 主键id */ id?: string | number; + rectificationUnit?: string; /** * 项目id diff --git a/src/api/workflow/workflowCommon/index.ts b/src/api/workflow/workflowCommon/index.ts index fd8a7e4..254e520 100644 --- a/src/api/workflow/workflowCommon/index.ts +++ b/src/api/workflow/workflowCommon/index.ts @@ -9,7 +9,9 @@ export default { path: routerJumpVo.formPath ? '/' + routerJumpVo.formPath : routerJumpVo.formPath, query: { id: routerJumpVo.businessId, + businessId: routerJumpVo.businessId, type: routerJumpVo.type, + planMonth: routerJumpVo.planMonth, taskId: routerJumpVo.taskId } }); diff --git a/src/components/Process/approvalRecord.vue b/src/components/Process/approvalRecord.vue index 01db986..f7e0e97 100644 --- a/src/components/Process/approvalRecord.vue +++ b/src/components/Process/approvalRecord.vue @@ -83,6 +83,8 @@ const init = async (businessId: string | number) => { loading.value = true; tabActiveName.value = 'image'; historyList.value = []; + console.log('🚀 ~ init ~ businessId:', businessId); + flowHisTaskList(businessId).then((resp) => { if (resp.data) { historyList.value = resp.data.list; diff --git a/src/views/design/volumeCatalog/index.vue b/src/views/design/volumeCatalog/index.vue new file mode 100644 index 0000000..89206cf --- /dev/null +++ b/src/views/design/volumeCatalog/index.vue @@ -0,0 +1,367 @@ + + + diff --git a/src/views/gisHome/component/leftMain.vue b/src/views/gisHome/component/leftMain.vue index 821c919..0c1478a 100644 --- a/src/views/gisHome/component/leftMain.vue +++ b/src/views/gisHome/component/leftMain.vue @@ -22,7 +22,7 @@

总人数

- {{ constructionUserData?.peopleCount + ' ' }} 人 + {{ constructionUserData?.peopleCount }}  
@@ -31,7 +31,7 @@

出勤人

- {{ constructionUserData?.attendanceCount + ' ' }} 人 + {{ constructionUserData?.attendanceCount }}   
@@ -40,7 +40,7 @@

出勤率

- {{ constructionUserData?.attendanceRate + ' ' }} % + {{ constructionUserData?.attendanceRate }}   %
diff --git a/src/views/materials/batchPlan/index.vue b/src/views/materials/batchPlan/index.vue new file mode 100644 index 0000000..9e7e7c6 --- /dev/null +++ b/src/views/materials/batchPlan/index.vue @@ -0,0 +1,396 @@ + + + diff --git a/src/views/materials/batchPlan/indexEdit.vue b/src/views/materials/batchPlan/indexEdit.vue new file mode 100644 index 0000000..e87fbf8 --- /dev/null +++ b/src/views/materials/batchPlan/indexEdit.vue @@ -0,0 +1,401 @@ + + + + diff --git a/src/views/materials/cailiaoshebei/index.vue b/src/views/materials/cailiaoshebei/index.vue new file mode 100644 index 0000000..84266c1 --- /dev/null +++ b/src/views/materials/cailiaoshebei/index.vue @@ -0,0 +1,534 @@ + + + diff --git a/src/views/materials/cailiaoshebei/indexEdit.vue b/src/views/materials/cailiaoshebei/indexEdit.vue new file mode 100644 index 0000000..2c929d6 --- /dev/null +++ b/src/views/materials/cailiaoshebei/indexEdit.vue @@ -0,0 +1,369 @@ + + + + diff --git a/src/views/materials/orderEquipment/index.vue b/src/views/materials/orderEquipment/index.vue new file mode 100644 index 0000000..1e32896 --- /dev/null +++ b/src/views/materials/orderEquipment/index.vue @@ -0,0 +1,420 @@ + + + diff --git a/src/views/materials/orderMaterials/index.vue b/src/views/materials/orderMaterials/index.vue new file mode 100644 index 0000000..411df1f --- /dev/null +++ b/src/views/materials/orderMaterials/index.vue @@ -0,0 +1,411 @@ + + + diff --git a/src/views/materials/suppliesprice/index.vue b/src/views/materials/suppliesprice/index.vue new file mode 100644 index 0000000..d06b096 --- /dev/null +++ b/src/views/materials/suppliesprice/index.vue @@ -0,0 +1,513 @@ + + + + diff --git a/src/views/materials/suppliesprice/indexEdit.vue b/src/views/materials/suppliesprice/indexEdit.vue new file mode 100644 index 0000000..ea01281 --- /dev/null +++ b/src/views/materials/suppliesprice/indexEdit.vue @@ -0,0 +1,401 @@ + + + + diff --git a/src/views/out/constructionValue/index.vue b/src/views/out/constructionValue/index.vue new file mode 100644 index 0000000..fae29de --- /dev/null +++ b/src/views/out/constructionValue/index.vue @@ -0,0 +1,395 @@ + + + diff --git a/src/views/out/constructionValue/indexEdit.vue b/src/views/out/constructionValue/indexEdit.vue new file mode 100644 index 0000000..3a689c0 --- /dev/null +++ b/src/views/out/constructionValue/indexEdit.vue @@ -0,0 +1,384 @@ + + + + diff --git a/src/views/out/designCompletion/index.vue b/src/views/out/designCompletion/index.vue new file mode 100644 index 0000000..54fd1f4 --- /dev/null +++ b/src/views/out/designCompletion/index.vue @@ -0,0 +1,292 @@ + + + diff --git a/src/views/out/designCompletion/indexEdit.vue b/src/views/out/designCompletion/indexEdit.vue new file mode 100644 index 0000000..5a14d76 --- /dev/null +++ b/src/views/out/designCompletion/indexEdit.vue @@ -0,0 +1,356 @@ + + + + diff --git a/src/views/out/monthPlan/index.vue b/src/views/out/monthPlan/index.vue new file mode 100644 index 0000000..88a00d5 --- /dev/null +++ b/src/views/out/monthPlan/index.vue @@ -0,0 +1,288 @@ + + + diff --git a/src/views/out/monthPlan/indexEdit.vue b/src/views/out/monthPlan/indexEdit.vue new file mode 100644 index 0000000..54a9b73 --- /dev/null +++ b/src/views/out/monthPlan/indexEdit.vue @@ -0,0 +1,368 @@ + + + + diff --git a/src/views/out/monthPlanAudit/index.vue b/src/views/out/monthPlanAudit/index.vue new file mode 100644 index 0000000..2f32d29 --- /dev/null +++ b/src/views/out/monthPlanAudit/index.vue @@ -0,0 +1,249 @@ + + + diff --git a/src/views/out/outDesignTable/index.vue b/src/views/out/outDesignTable/index.vue new file mode 100644 index 0000000..2599207 --- /dev/null +++ b/src/views/out/outDesignTable/index.vue @@ -0,0 +1,127 @@ + + + diff --git a/src/views/out/outDesignTableVS/index.vue b/src/views/out/outDesignTableVS/index.vue new file mode 100644 index 0000000..2c14553 --- /dev/null +++ b/src/views/out/outDesignTableVS/index.vue @@ -0,0 +1,135 @@ + + + diff --git a/src/views/out/outTable/index.vue b/src/views/out/outTable/index.vue new file mode 100644 index 0000000..83f13b9 --- /dev/null +++ b/src/views/out/outTable/index.vue @@ -0,0 +1,127 @@ + + + diff --git a/src/views/out/ownerSettlement/index.vue b/src/views/out/ownerSettlement/index.vue new file mode 100644 index 0000000..84fd8c2 --- /dev/null +++ b/src/views/out/ownerSettlement/index.vue @@ -0,0 +1,130 @@ + + + + diff --git a/src/views/out/settlementValueOwner/index.vue b/src/views/out/settlementValueOwner/index.vue new file mode 100644 index 0000000..c672713 --- /dev/null +++ b/src/views/out/settlementValueOwner/index.vue @@ -0,0 +1,292 @@ + + + diff --git a/src/views/out/settlementValueSubcontract/index.vue b/src/views/out/settlementValueSubcontract/index.vue new file mode 100644 index 0000000..8a32ce4 --- /dev/null +++ b/src/views/out/settlementValueSubcontract/index.vue @@ -0,0 +1,366 @@ + + + diff --git a/src/views/out/valueAllocation/index.vue b/src/views/out/valueAllocation/index.vue new file mode 100644 index 0000000..c8e1493 --- /dev/null +++ b/src/views/out/valueAllocation/index.vue @@ -0,0 +1,272 @@ + + + diff --git a/src/views/progress/constructionSchedulePlan/index.vue b/src/views/progress/constructionSchedulePlan/index.vue new file mode 100644 index 0000000..949dc09 --- /dev/null +++ b/src/views/progress/constructionSchedulePlan/index.vue @@ -0,0 +1,362 @@ + + + diff --git a/src/views/progress/plan/index.vue b/src/views/progress/plan/index.vue index 0b4a896..63c6711 100644 --- a/src/views/progress/plan/index.vue +++ b/src/views/progress/plan/index.vue @@ -203,7 +203,7 @@ import { ProgressCategoryVO, ProgressCategoryQuery, ProgressCategoryForm } from const { proxy } = getCurrentInstance() as ComponentInternalInstance; const { progress_unit_type, progress_status } = toRefs(proxy?.useDict('progress_unit_type', 'progress_status')); -import { useUserStoreHook } from '@/store/modules/user'; + import CreatePlan from './component/createPlan.vue'; import CreateDaily from './component/createDaily.vue'; import CreateDailyRate from './component/createDailyRate.vue'; @@ -212,7 +212,7 @@ type ProgressCategoryOption = { name: string; children?: ProgressCategoryOption[]; }; - +import { useUserStoreHook } from '@/store/modules/user'; // 获取用户 store const userStore = useUserStoreHook(); // 从 store 中获取项目列表和当前选中的项目 @@ -273,7 +273,7 @@ const { queryParams, form, rules } = toRefs(data); const getList = async () => { if (!queryParams.value.matrixId) { const res = await getProjectSquare(currentProject.value.id); - if (res.data.length === 0) { + if (!res.data || res.data.length === 0) { proxy?.$modal.msgWarning('当前项目下没有方阵,请先创建方阵'); } else { let matrixList = res.data.map((item) => { @@ -282,17 +282,19 @@ const getList = async () => { matrixId: item.projectId }; }); - if (!matrixValue.value) matrixValue.value = matrixList[0].id; - matrixOptions.value = matrixList; - queryParams.value.matrixId = matrixList[0].children[0].matrixId; + try { + if (!matrixValue.value) matrixValue.value = matrixList[0].id; + matrixOptions.value = matrixList; + queryParams.value.matrixId = matrixList[0].children[0].matrixId; + } catch (error) { + proxy?.$modal.msgError('获取方阵失败'); + } } } loading.value = true; - loading.value = true; - try { const res = await listProgressCategory(queryParams.value); - const data = proxy?.handleTree(res.data, 'id', 'pid'); + const data = proxy?.handleTree(res.data, 'id', 'parentId'); if (data) { progressCategoryList.value = data; } diff --git a/src/views/progress/progressCategory/index.vue b/src/views/progress/progressCategory/index.vue new file mode 100644 index 0000000..33409d8 --- /dev/null +++ b/src/views/progress/progressCategory/index.vue @@ -0,0 +1,379 @@ + + + diff --git a/src/views/project/project/index.vue b/src/views/project/project/index.vue index c504b1b..4e6fabe 100644 --- a/src/views/project/project/index.vue +++ b/src/views/project/project/index.vue @@ -280,11 +280,42 @@ /> - + + + + + + + + + + + + + diff --git a/src/views/project/salaryExcel/index.vue b/src/views/project/salaryExcel/index.vue index 25ea9a0..325f845 100644 --- a/src/views/project/salaryExcel/index.vue +++ b/src/views/project/salaryExcel/index.vue @@ -1,7 +1,190 @@ + +const stores = useUserStoreHook(); +const { proxy } = getCurrentInstance(); - +const loading = ref(false); +const uploadSalaryRef = ref(); +const editRef = ref(); +const documentDetailRef = ref(); +const detailRef = ref(); + +const showAll = ref(false); +const single = ref(true); +const multiple = ref(true); + +const showDocumentDetail = ref(false); +const tableData = reactive({ + data: [], + total: 0 +}); +const totalMoney = ref(0); +const DetailMoney = ref(0); +const ids = ref([]); + +const uploadSalary = () => { + uploadSalaryRef.value.openDialog(); +}; + +const initTableData = () => { + busSalaryDetailsList(); +}; + +const busSalaryDetailsList = () => { + loading.value = true; + readAllImportedListData().then((res: any) => { + let list = res.data.list ?? []; + let moneySum = 0; + list.forEach((item) => { + moneySum += parseInt(item.money); + }); + DetailMoney.value = moneySum; + totalMoney.value = moneySum >= 10000 ? (moneySum / 10000).toFixed(2) + '万' : moneySum; + tableData.data = list; + loading.value = false; + }); +}; + +const handleView = (row: any) => { + detailRef.value.openDialog(toRaw(row)); +}; + +const bookSalary = (row: any) => { + getTheSourceExcelAccordingToTheIdOfThePayroll({ id: row.id }).then((res: any) => { + if (res.code == 0) { + showDocumentDetail.value = true; + let obj = { + suffix: '.' + res.data.Suffix, + name: res.data.Name, + filenPathCoding: res.data.Path, + id: row.id + }; + nextTick(() => { + documentDetailRef.value.openDialog(obj); + }); + } + }); +}; + +const DownloadSalary = (row: any) => { + getTheSourceExcelAccordingToTheIdOfThePayroll({ id: row.id }).then((res: any) => { + if (res.code == 0) { + window.open(res.data.Path, '_blank'); + } + }); +}; + +const DownloadSalaryMOdel = () => { + window.open('http://zmkg.cqet.top:8899/file/masterMask/coryStorageTemplate/工资表模板.xlsx', '_blank'); +}; + +const delSalary = () => { + ElMessageBox.confirm('是否删除选中数据', '提示', { + confirmButtonText: '确认', + cancelButtonText: '取消', + type: 'warning' + }) + .then(() => { + deletePayroll({ ids: ids.value }).then(() => { + ElMessage.success('删除成功'); + busSalaryDetailsList(); + }); + }) + .catch(() => {}); +}; + +const handleSelectionChange = (selection: any[]) => { + ids.value = selection.map((item) => item.id); +}; + +onMounted(() => { + // initTableData(); +}); + + + diff --git a/src/views/quality/qualityInspection/index.vue b/src/views/quality/qualityInspection/index.vue index 6506a80..01bcd5e 100644 --- a/src/views/quality/qualityInspection/index.vue +++ b/src/views/quality/qualityInspection/index.vue @@ -124,6 +124,11 @@ + + + + + ( - proxy?.useDict('quality_inspection_check_type', 'quality_inspection_status_type') +const { quality_inspection_check_type, quality_inspection_status_type, rectification_unit_type } = toRefs( + proxy?.useDict('quality_inspection_check_type', 'quality_inspection_status_type', 'rectification_unit_type') ); // 获取用户 store const userStore = useUserStoreHook(); @@ -220,6 +225,7 @@ const initFormData: QualityInspectionForm = { verificationResult: undefined, verificationType: undefined, verificationTime: undefined, + rectificationUnit: undefined, remark: undefined }; const data = reactive>({ diff --git a/src/views/workflows/processDefinition/design.vue b/src/views/workflows/processDefinition/design.vue index cb8c6a2..0eaac66 100644 --- a/src/views/workflows/processDefinition/design.vue +++ b/src/views/workflows/processDefinition/design.vue @@ -27,9 +27,11 @@ const iframeLoaded = () => { }; //baseUrl + const open = async (definitionId, disabled) => { - const url = baseUrl + `/warm-flow-ui/index.html?id=${definitionId}&disabled=${disabled}`; + const url = import.meta.env.DEV + ? `/warm-flow-ui/index.html?id=${definitionId}&disabled=${disabled}` + : baseUrl + `/warm-flow-ui/index.html?id=${definitionId}&disabled=${disabled}`; iframeUrl.value = url + '&Authorization=Bearer ' + getToken() + '&clientid=' + import.meta.env.VITE_APP_CLIENT_ID; - console.log('🚀 ~ open ~ iframeUrl:', iframeUrl.value); + console.log('🚀 ~ open ~ iframeUrl:', import.meta.env); }; /** 关闭按钮 */ function close() { diff --git a/src/views/workflows/task/taskWaiting.vue b/src/views/workflows/task/taskWaiting.vue index d4225c5..02aac32 100644 --- a/src/views/workflows/task/taskWaiting.vue +++ b/src/views/workflows/task/taskWaiting.vue @@ -160,6 +160,7 @@ const handleOpen = async (row: FlowTaskVO) => { taskId: row.id, type: 'approval', formCustom: row.formCustom, + planMonth: row.businessId.split('_')[1], formPath: row.formPath }); workflowCommon.routerJump(routerJumpVo, proxy);