-
修改
-
取消
-
-
+
+
模板表格文件下载
+
+ 下载模板
+
上传表格文件
+
+
+
+ 选取文件
+ 只能上传excel文件且不超过5M
+
+
+
+ 开始导入
+ 关闭窗口
+
+
-
-
\ No newline at end of file
diff --git a/src/views/projectLib/projectPlan/addPlanFile.vue b/src/views/projectLib/projectPlan/addPlanFile.vue
new file mode 100644
index 0000000..6961b7e
--- /dev/null
+++ b/src/views/projectLib/projectPlan/addPlanFile.vue
@@ -0,0 +1,134 @@
+
+
+
+ 上传表格文件
+
+
+
+ 选取文件
+ 只能上传[{{ item }}]且不超过5M
+
+
+
+ 开始导入
+ 关闭窗口
+
+
+
+
+
diff --git a/src/views/projectLib/projectPlan/elstepchild.vue b/src/views/projectLib/projectPlan/elstepchild.vue
new file mode 100644
index 0000000..f3d072a
--- /dev/null
+++ b/src/views/projectLib/projectPlan/elstepchild.vue
@@ -0,0 +1,29 @@
+
+
+
+
+
+ {{ item.taskName }}
+
+
+ {{ item.scheduledStartTime }}
+
+
+ {{ item.scheduledEndTime }}
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/views/projectLib/projectPlan/index.vue b/src/views/projectLib/projectPlan/index.vue
index 92c7258..f6ccb7b 100644
--- a/src/views/projectLib/projectPlan/index.vue
+++ b/src/views/projectLib/projectPlan/index.vue
@@ -1,26 +1,41 @@
-
+
-
+
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/src/views/projectLib/projectPlan/planinfoFileDetail.vue b/src/views/projectLib/projectPlan/planinfoFileDetail.vue
new file mode 100644
index 0000000..34ef1c6
--- /dev/null
+++ b/src/views/projectLib/projectPlan/planinfoFileDetail.vue
@@ -0,0 +1,116 @@
+
+
+
+ {{dataTo.taskName}}
+
+
+
+
+
+
+
diff --git a/src/views/projectLib/projectPlan/projectPlan.api.ts b/src/views/projectLib/projectPlan/projectPlan.api.ts
index afb08b1..0e010da 100644
--- a/src/views/projectLib/projectPlan/projectPlan.api.ts
+++ b/src/views/projectLib/projectPlan/projectPlan.api.ts
@@ -2,19 +2,36 @@ import { defHttp } from '/@/utils/http/axios';
export enum Api {
saveprojectInfo = "",
- queryProjectApprovedPage = '/huzhouProject/queryProjectApprovedPage',
+ projectApprovedPageList = '/huzhouProject/projectApprovedPageList',
queryPlanModuleDetailPage = "/huzhouPlan/queryPlanModuleDetailPage",
queryPlanModuleone = '/huzhouPlan/queryPlanModuleone',
saveProjectPlan = '/huzhouPlan/saveProjectPlan',
- queryProjectPlan="/huzhouPlan/queryProjectPlan"
+ queryProjectPlan="/huzhouPlan/queryProjectPlan",
+ submitplaninfoUploadFile="/huzhouPlan/submitplaninfoUploadFile",
+ queryPlanInfoMainTimeline="/huzhouPlan/queryPlanInfoMainTimeline",
+ planUploadFile="/huzhouPlan/planUploadFile",
+ queryPlaninfoFilePageByid="/huzhouPlan/queryPlaninfoFilePageByid",
+ planUploadModifyFile="/huzhouPlan/planUploadModifyFile",
+ modifyPlaninfo="/huzhouPlan/modifyPlaninfo",
+ approvePlaninfo='huzhouPlan/approvePlaninfo'
}
/**
* 提交入库申请流程
*/
-export const queryProjectApprovedPage = (params) => defHttp.get({ url: Api.queryProjectApprovedPage, params })
+export const projectApprovedPageList = (params) => defHttp.get({ url: Api.projectApprovedPageList, params })
export const queryPlanModuleDetailPage = (params) => defHttp.get({ url: Api.queryPlanModuleDetailPage, params })
export const queryPlanModuleone = (params) => defHttp.get({ url: Api.queryPlanModuleone, params })
export const saveProjectPlan = (params) => defHttp.post({ url: Api.saveProjectPlan, params })
export const queryProjectPlan = (params) => defHttp.get({ url: Api.queryProjectPlan, params })
+export const submitplaninfoUploadFile = (params?) =>defHttp.post({ url: Api.submitplaninfoUploadFile,headers:{ "Content-Type": "multipart/form-data" }, params })
+export const queryPlanInfoMainTimeline = (params) => defHttp.get({ url: Api.queryPlanInfoMainTimeline, params })
+export const planUploadFile = (params?) =>defHttp.post({ url: Api.planUploadFile,headers:{ "Content-Type": "multipart/form-data" }, params })
+export const queryPlaninfoFilePageByid = (params) => defHttp.get({ url: Api.queryPlaninfoFilePageByid, params })
+export const planUploadModifyFile = (params?) =>defHttp.post({ url: Api.planUploadModifyFile,headers:{ "Content-Type": "multipart/form-data" }, params })
+export const modifyPlaninfo = (params?) =>defHttp.post({ url: Api.modifyPlaninfo,headers:{ "Content-Type": "multipart/form-data" }, params })
+export const approvePlaninfo = (params?) =>defHttp.post({ url: Api.approvePlaninfo,headers:{ "Content-Type": "multipart/form-data" }, params })
+
+
+
diff --git a/src/views/projectLib/projectPlan/projectPlan.data.ts b/src/views/projectLib/projectPlan/projectPlan.data.ts
index 725aaa0..f366bb9 100644
--- a/src/views/projectLib/projectPlan/projectPlan.data.ts
+++ b/src/views/projectLib/projectPlan/projectPlan.data.ts
@@ -91,7 +91,7 @@ export const planDetailColumns: BasicColumn[] = [
let days = dayjs(record.scheduledEndTime).diff(text, "day")
console.log("我这一行的数据是daysdaysdays", days)
- if ( days > record.maxDays) {
+ if (days > record.maxDays) {
return '计划时常超过预定期限';
}
}
@@ -276,4 +276,78 @@ export const ProcessColumns: BasicColumn[] = [
dataIndex: 'workplace',
width: 100,
}
-];
\ No newline at end of file
+];
+export const PlaninfoColumn: BasicColumn[] = [
+
+ {
+ title: '任务名称',
+ dataIndex: 'taskName',
+ },
+ {
+ title: '计划开始时间',
+ dataIndex: 'scheduledStartTime',
+ width: 150,
+ },
+ {
+ title: '计划结束时间',
+ dataIndex: 'scheduledEndTime',
+ width: 150,
+ },
+ {
+ title: '所需文件',
+ dataIndex: 'taskFile',
+ width: 100,
+ },
+ {
+ title: '是否已完成',
+ dataIndex: 'isfinish',
+ width: 100,
+ customRender: ({ record }) => {
+ if (record.isfinish == 1) {
+ return "已完成"
+ } else {
+ return "未完成"
+ }
+ },
+ }
+
+];
+export const PlaninfoFiletableColumns: BasicColumn[] = [
+ {
+ title: '文件名称',
+ dataIndex: 'documentName',
+ },
+ {
+ title: '文件大小',
+ dataIndex: 'size',
+ width: 100,
+ customRender: ({ record }) => {
+ let kbNum: number = record.size / 1024
+ if (kbNum < 1024) {
+ return kbNum.toFixed(2).toString() + "KB"
+ } else {
+ let mbNum: number = kbNum / 1024
+ return mbNum.toFixed(2).toString() + "MB"
+ }
+
+ },
+ },
+ {
+ title: '上传时间',
+ dataIndex: 'createtime',
+ },
+ {
+ title: '文件状态',
+ dataIndex: 'status',
+ customRender: ({ record }) => {
+ if (record.status == 1) {
+ return "审批中"
+ } else if(record.status == 2) {
+ return "有效"
+ }
+ else {
+ return "历史文件" //0
+ }
+ },
+ }
+]
\ No newline at end of file
diff --git a/src/views/projectLib/projectPlan/viewPlanDetail.vue b/src/views/projectLib/projectPlan/viewPlanDetail.vue
index 54384f5..afe4036 100644
--- a/src/views/projectLib/projectPlan/viewPlanDetail.vue
+++ b/src/views/projectLib/projectPlan/viewPlanDetail.vue
@@ -1,75 +1,222 @@
-
- 项目计划详情
-
- 项目计划审批详情
-
-
-
+
+}
+
+:deep(.el-timeline-item__tail) {
+ border-left: none;
+ border-top: 2px solid #e4e7ed;
+ width: 100%;
+ position: absolute;
+ top: 9px;
+}
+
+:deep(.el-timeline-item__wrapper) {
+ padding-left: 0;
+ position: absolute;
+ top: 20px;
+ transform: translateX(-50%);
+ text-align: center;
+}
+
+:deep(.el-timeline-item__timestamp) {
+ font-size: 14px;
+
+}
+
\ No newline at end of file
diff --git a/src/views/projectLib/projectPlanModule/addModuleDetailPage.vue b/src/views/projectLib/projectPlanModule/addModuleDetailPage.vue
deleted file mode 100644
index ed5b36c..0000000
--- a/src/views/projectLib/projectPlanModule/addModuleDetailPage.vue
+++ /dev/null
@@ -1,121 +0,0 @@
-
-
-
-
-
-
- 新增计划
-
-
-
- 修改
- 取消
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/src/views/projectLib/projectPlanModule/addModulePage.vue b/src/views/projectLib/projectPlanModule/addModulePage.vue
deleted file mode 100644
index 426e898..0000000
--- a/src/views/projectLib/projectPlanModule/addModulePage.vue
+++ /dev/null
@@ -1,83 +0,0 @@
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/src/views/projectLib/projectPlanModule/index.vue b/src/views/projectLib/projectPlanModule/index.vue
deleted file mode 100644
index ac4c78a..0000000
--- a/src/views/projectLib/projectPlanModule/index.vue
+++ /dev/null
@@ -1,131 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
- 新增模板
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/src/views/projectLib/projectPlanModule/projectPlanModule.api.ts b/src/views/projectLib/projectPlanModule/projectPlanModule.api.ts
deleted file mode 100644
index c3a2d52..0000000
--- a/src/views/projectLib/projectPlanModule/projectPlanModule.api.ts
+++ /dev/null
@@ -1,23 +0,0 @@
-import { defHttp } from '/@/utils/http/axios';
-
-export enum Api {
- saveprojectInfo = "",
- queryPlanModulePage = '/huzhouPlan/queryPlanModulePage',
- queryPlanModuleDetailPage = "/huzhouPlan/queryPlanModuleDetailPage",
- queryPlanModuleone = '/huzhouPlan/queryPlanModuleone',
- savePlanModule = '/huzhouPlan/savePlanModule',
- savePlanModuleDatail = '/huzhouPlan/savePlanModuleDatail',
- modifyPlanModule = '/huzhouPlan/modifyPlanModule',
- deletePlanModule='/huzhouPlan/deletePlanModule',
-}
-/**
- * 提交入库申请流程
- */
-export const queryPlanModulePage = (params) => defHttp.get({ url: Api.queryPlanModulePage, params })
-export const queryPlanModuleDetailPage = (params) => defHttp.get({ url: Api.queryPlanModuleDetailPage, params })
-export const queryPlanModuleone = (params) => defHttp.get({ url: Api.queryPlanModuleone, params })
-
-export const savePlanModule = (params) => defHttp.post({ url: Api.savePlanModule, params })
-export const savePlanModuleDatail = (params) => defHttp.post({ url: Api.savePlanModuleDatail, params })
-export const modifyPlanModule = (params) => defHttp.post({ url: Api.modifyPlanModule, params })
-export const deletePlanModule = (params) => defHttp.delete({ url: Api.deletePlanModule, params},{ joinParamsToUrl: true })
\ No newline at end of file
diff --git a/src/views/projectLib/projectPlanModule/projectPlanModule.data.ts b/src/views/projectLib/projectPlanModule/projectPlanModule.data.ts
deleted file mode 100644
index 8d7ad7d..0000000
--- a/src/views/projectLib/projectPlanModule/projectPlanModule.data.ts
+++ /dev/null
@@ -1,173 +0,0 @@
-import { FormSchema } from '/@/components/Form';
-import { BasicColumn } from '/@/components/Table';
-import { getDictItemsByCode } from '/@/utils/dict/index';
-import { useUserStore } from '/@/store/modules/user';
-
-const userStore = useUserStore();
-const projectTypeDicts: Array
= getDictItemsByCode("projectType")
-function projectTypeDict() {
- for (let i = 0; i < projectTypeDicts.length; i++) {
- projectTypeDicts[i].label = projectTypeDicts[i].text;
- }
- return projectTypeDicts
-}
-const approvalRsesults:Array = getDictItemsByCode("approvalResult")
-
-function approvalRsesult(){
- for(let i = 0;i {
- for(let i =0;i