diff --git a/.env.development b/.env.development index b59befd..a27fa3f 100644 --- a/.env.development +++ b/.env.development @@ -5,7 +5,7 @@ VITE_APP_TITLE = 煤科建管平台 VITE_APP_ENV = 'development' # 开发环境 -VITE_APP_BASE_API = 'http://192.168.110.180:8899' +VITE_APP_BASE_API = 'http://192.168.110.185:8899' # 无人机接口地址 diff --git a/src/api/patch/index.ts b/src/api/patch/index.ts new file mode 100644 index 0000000..b086a80 --- /dev/null +++ b/src/api/patch/index.ts @@ -0,0 +1,63 @@ +import request from '@/utils/request'; +import { AxiosPromise } from 'axios'; +import { MasterVO, MasterForm, MasterQuery } from '@/api/patch/master/types'; + +/** + * 查询派单列表 + * @param query + * @returns {*} + */ + +export const listMaster = (query?: MasterQuery): AxiosPromise => { + return request({ + url: '/patch/list', + method: 'get', + params: query + }); +}; + +/** + * 查询派单详细 + * @param id + */ +export const getMaster = (id: string | number): AxiosPromise => { + return request({ + url: '/patch/' + id, + method: 'get' + }); +}; + +/** + * 新增派单 + * @param data + */ +export const addMaster = (data: MasterForm) => { + return request({ + url: '/patch/', + method: 'post', + data: data + }); +}; + +/** + * 修改派单 + * @param data + */ +export const updateMaster = (data: MasterForm) => { + return request({ + url: '/patch/', + method: 'put', + data: data + }); +}; + +/** + * 删除派单 + * @param id + */ +export const delMaster = (id: string | number | Array) => { + return request({ + url: '/patch/' + id, + method: 'delete' + }); +}; diff --git a/src/api/patch/types.ts b/src/api/patch/types.ts new file mode 100644 index 0000000..5a55b96 --- /dev/null +++ b/src/api/patch/types.ts @@ -0,0 +1,141 @@ +export interface MasterVO { + /** + * 主键ID + */ + id: string | number; + + /** + * 项目ID + */ + projectId: string | number; + + /** + * 任务名称 + */ + taskName: string; + + /** + * 任务描述 + */ + describe: string; + + /** + * 计划完成时间 + */ + pcd: string; + + /** + * 实际完成时间 + */ + act: string; + + /** + * 完成进度 + */ + completionProgress: string; + + /** + * 任务状态 + */ + taskStatus: string; + + /** + * 备注 + */ + remark: string; + +} + +export interface MasterForm extends BaseEntity { + /** + * 主键ID + */ + id?: string | number; + + /** + * 项目ID + */ + projectId?: string | number; + + /** + * 任务名称 + */ + taskName?: string; + + /** + * 任务描述 + */ + describe?: string; + + /** + * 计划完成时间 + */ + pcd?: string; + + /** + * 实际完成时间 + */ + act?: string; + + /** + * 完成进度 + */ + completionProgress?: string; + + /** + * 任务状态 + */ + taskStatus?: string; + + /** + * 备注 + */ + remark?: string; + +} + +export interface MasterQuery extends PageQuery { + + /** + * 项目ID + */ + projectId?: string | number; + + /** + * 任务名称 + */ + taskName?: string; + + /** + * 任务描述 + */ + describe?: string; + + /** + * 计划完成时间 + */ + pcd?: string; + + /** + * 实际完成时间 + */ + act?: string; + + /** + * 完成进度 + */ + completionProgress?: string; + + /** + * 任务状态 + */ + taskStatus?: string; + + /** + * 日期范围参数 + */ + params?: any; +} + + + diff --git a/src/api/plan/plan/index.ts b/src/api/plan/plan/index.ts new file mode 100644 index 0000000..12afcd5 --- /dev/null +++ b/src/api/plan/plan/index.ts @@ -0,0 +1,63 @@ +import request from '@/utils/request'; +import { AxiosPromise } from 'axios'; +import { PlanVO, PlanForm, PlanQuery } from '@/api/plan/plan/types'; + +/** + * 查询招标计划列表 + * @param query + * @returns {*} + */ + +export const listPlan = (query?: PlanQuery): AxiosPromise => { + return request({ + url: '/plan/plan/list', + method: 'get', + params: query + }); +}; + +/** + * 查询招标计划详细 + * @param id + */ +export const getPlan = (id: string | number): AxiosPromise => { + return request({ + url: '/plan/plan/' + id, + method: 'get' + }); +}; + +/** + * 新增招标计划 + * @param data + */ +export const addPlan = (data: PlanForm) => { + return request({ + url: '/plan/plan', + method: 'post', + data: data + }); +}; + +/** + * 修改招标计划 + * @param data + */ +export const updatePlan = (data: PlanForm) => { + return request({ + url: '/plan/plan', + method: 'put', + data: data + }); +}; + +/** + * 删除招标计划 + * @param id + */ +export const delPlan = (id: string | number | Array) => { + return request({ + url: '/plan/plan/' + id, + method: 'delete' + }); +}; diff --git a/src/api/plan/plan/types.ts b/src/api/plan/plan/types.ts new file mode 100644 index 0000000..2e9928a --- /dev/null +++ b/src/api/plan/plan/types.ts @@ -0,0 +1,161 @@ +export interface PlanVO { + /** + * 招标计划ID + */ + id: string | number; + + /** + * 分包类型 + */ + subpackageType: string; + + /** + * 分包名称 + */ + subpackageName: string; + + /** + * 分包内容 + */ + subpackageContext: string; + + /** + * 限价 + */ + limitPrice: number; + + /** + * 计划招标时间 + */ + planTenderTime: string; + + /** + * 招标方式 + */ + tenderMethod: string; + + /** + * 招标文件(多个) + */ + tenderFile: string; + + /** + * 中标文件(单个) + */ + bidFile: string | number; + + /** + * 合同额 + */ + contract: number; + +} + +export interface PlanForm extends BaseEntity { + /** + * 招标计划ID + */ + id?: string | number; + + /** + * 分包类型 + */ + subpackageType?: string; + + /** + * 分包名称 + */ + subpackageName?: string; + + /** + * 分包内容 + */ + subpackageContext?: string; + + /** + * 限价 + */ + limitPrice?: number; + + /** + * 计划招标时间 + */ + planTenderTime?: string; + + /** + * 招标方式 + */ + tenderMethod?: string; + + /** + * 招标文件(多个) + */ + tenderFile?: string; + + /** + * 中标文件(单个) + */ + bidFile?: string | number; + + /** + * 合同额 + */ + contract?: number; + +} + +export interface PlanQuery extends PageQuery { + + /** + * 分包类型 + */ + subpackageType?: string; + + /** + * 分包名称 + */ + subpackageName?: string; + + /** + * 分包内容 + */ + subpackageContext?: string; + + /** + * 限价 + */ + limitPrice?: number; + + /** + * 计划招标时间 + */ + planTenderTime?: string; + + /** + * 招标方式 + */ + tenderMethod?: string; + + /** + * 招标文件(多个) + */ + tenderFile?: string; + + /** + * 中标文件(单个) + */ + bidFile?: string | number; + + /** + * 合同额 + */ + contract?: number; + + /** + * 日期范围参数 + */ + params?: any; +} + + + diff --git a/src/api/supplierInput/supplierInput/index.ts b/src/api/supplierInput/supplierInput/index.ts new file mode 100644 index 0000000..719aa11 --- /dev/null +++ b/src/api/supplierInput/supplierInput/index.ts @@ -0,0 +1,63 @@ +import request from '@/utils/request'; +import { AxiosPromise } from 'axios'; +import { SupplierInputVO, SupplierInputForm, SupplierInputQuery } from '@/api/supplierInput/supplierInput/types'; + +/** + * 查询供应商入库列表 + * @param query + * @returns {*} + */ + +export const listSupplierInput = (query?: SupplierInputQuery): AxiosPromise => { + return request({ + url: '/supplierInput/supplierInput/list', + method: 'get', + params: query + }); +}; + +/** + * 查询供应商入库详细 + * @param id + */ +export const getSupplierInput = (id: string | number): AxiosPromise => { + return request({ + url: '/supplierInput/supplierInput/' + id, + method: 'get' + }); +}; + +/** + * 新增供应商入库 + * @param data + */ +export const addSupplierInput = (data: SupplierInputForm) => { + return request({ + url: '/supplierInput/supplierInput', + method: 'post', + data: data + }); +}; + +/** + * 修改供应商入库 + * @param data + */ +export const updateSupplierInput = (data: SupplierInputForm) => { + return request({ + url: '/supplierInput/supplierInput', + method: 'put', + data: data + }); +}; + +/** + * 删除供应商入库 + * @param id + */ +export const delSupplierInput = (id: string | number | Array) => { + return request({ + url: '/supplierInput/supplierInput/' + id, + method: 'delete' + }); +}; diff --git a/src/api/supplierInput/supplierInput/types.ts b/src/api/supplierInput/supplierInput/types.ts new file mode 100644 index 0000000..3f86b6e --- /dev/null +++ b/src/api/supplierInput/supplierInput/types.ts @@ -0,0 +1,55 @@ +export interface SupplierInputVO { + /** + * + */ + id: string | number; + + /** + * 供应商类型 + */ + supplierType: string; + + /** + * 入库资料 + */ + inputFile: string; + +} + +export interface SupplierInputForm extends BaseEntity { + /** + * + */ + id?: string | number; + + /** + * 供应商类型 + */ + supplierType?: string; + + /** + * 入库资料 + */ + inputFile?: string; +} + +export interface SupplierInputQuery extends PageQuery { + + /** + * 供应商类型 + */ + supplierType?: string; + + /** + * 入库资料 + */ + inputFile?: string; + + /** + * 日期范围参数 + */ + params?: any; +} + + + diff --git a/src/views/patch/index.vue b/src/views/patch/index.vue new file mode 100644 index 0000000..d5cabad --- /dev/null +++ b/src/views/patch/index.vue @@ -0,0 +1,277 @@ + + + diff --git a/src/views/tender/plan/index.vue b/src/views/tender/plan/index.vue new file mode 100644 index 0000000..26408a7 --- /dev/null +++ b/src/views/tender/plan/index.vue @@ -0,0 +1,285 @@ + + + diff --git a/src/views/tender/supplierInput/index.vue b/src/views/tender/supplierInput/index.vue new file mode 100644 index 0000000..69d5f99 --- /dev/null +++ b/src/views/tender/supplierInput/index.vue @@ -0,0 +1,368 @@ + + + +