From 1dbde7625795ac7a5d670fae7fa3caed34683f4d Mon Sep 17 00:00:00 2001 From: dhr <2216804034@qq.com> Date: Wed, 20 Aug 2025 21:10:21 +0800 Subject: [PATCH] add --- .env.development | 2 +- src/api/patch/index.ts | 50 +- src/views/cory/template/index.vue | 1 + src/views/patch/index.vue | 567 ++++++++++++++++--- src/views/progress/plan/index.vue | 1 + src/views/tender/plan/index.vue | 359 +++++++----- src/views/tender/supplierInput/index.vue | 149 +++-- src/views/tender/supplierInput/indexEdit.vue | 0 8 files changed, 891 insertions(+), 238 deletions(-) create mode 100644 src/views/tender/supplierInput/indexEdit.vue diff --git a/.env.development b/.env.development index b59befd..89cd31f 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.210:8899' # 无人机接口地址 diff --git a/src/api/patch/index.ts b/src/api/patch/index.ts index b086a80..d8ad3e9 100644 --- a/src/api/patch/index.ts +++ b/src/api/patch/index.ts @@ -1,6 +1,6 @@ import request from '@/utils/request'; import { AxiosPromise } from 'axios'; -import { MasterVO, MasterForm, MasterQuery } from '@/api/patch/master/types'; +import { MasterVO, MasterForm, MasterQuery } from '@/api/patch/types'; /** * 查询派单列表 @@ -33,7 +33,7 @@ export const getMaster = (id: string | number): AxiosPromise => { */ export const addMaster = (data: MasterForm) => { return request({ - url: '/patch/', + url: '/patch', method: 'post', data: data }); @@ -45,7 +45,7 @@ export const addMaster = (data: MasterForm) => { */ export const updateMaster = (data: MasterForm) => { return request({ - url: '/patch/', + url: '/patch', method: 'put', data: data }); @@ -61,3 +61,47 @@ export const delMaster = (id: string | number | Array) => { method: 'delete' }); }; + +/** + * 完成进度 + * @param masterId + */ +export function getProgressDetail(masterId: string | number) { + return request({ + url: `/patch/getProgressList/${masterId}`, // 你的后端进度详情接口地址 + method: 'get' + }); +} + +// 弹窗新增进度 +export const addProgress = (data) => { + return request({ + url: '/patch/progress', + method: 'post', + data + }); +}; + +// 弹窗修改进度 +export const editProgress = (data) => { + return request({ + url: '/patch/editProgress', + method: 'put', + data + }); +}; + +// 删除进度 +export const deleteProgress = (id) => { + return request({ + url: `/removeProgress/{id}`, + method: 'delete' + }); +}; + +export const getUserName = () => { + return request({ + url: `/patch/findThis`, + method: 'get' + }); +}; diff --git a/src/views/cory/template/index.vue b/src/views/cory/template/index.vue index c872665..7d94a7a 100644 --- a/src/views/cory/template/index.vue +++ b/src/views/cory/template/index.vue @@ -116,6 +116,7 @@ import { listContactTypeformtemplate } from '@/api/cory/contactformtemplate'; import { addContactnotice, delContactnotice, listContactnotice } from '@/api/cory/contactnotice'; const { proxy } = getCurrentInstance() as ComponentInternalInstance; +const { wf_business_status } = toRefs(proxy?.useDict('wf_business_status')); // 获取用户 store const userStore = useUserStoreHook(); // 从 store 中获取项目列表和当前选中的项目 diff --git a/src/views/patch/index.vue b/src/views/patch/index.vue index d5cabad..1282df4 100644 --- a/src/views/patch/index.vue +++ b/src/views/patch/index.vue @@ -1,11 +1,12 @@ - - + + + + + + +