diff --git a/src/views/myWork/completed/complectedDetail.vue b/src/views/myWork/completed/complectedDetail.vue new file mode 100644 index 0000000..d3ce452 --- /dev/null +++ b/src/views/myWork/completed/complectedDetail.vue @@ -0,0 +1,124 @@ + + + diff --git a/src/views/myWork/completed/complete.data.ts b/src/views/myWork/completed/complete.data.ts new file mode 100644 index 0000000..200fff7 --- /dev/null +++ b/src/views/myWork/completed/complete.data.ts @@ -0,0 +1,75 @@ +import { FormSchema } from '/@/components/Form'; +import { BasicColumn } from '/@/components/Table'; + +export const columns: BasicColumn[] = [ + + + + { + title: '流程名称', + dataIndex: 'processName', + width: 150, + }, + { + title: '项目id', + dataIndex: 'projectid', + width: 100, + }, + { + title: '项目名称', + dataIndex: 'projectName', + width: 100, + }, + { + title: '当前节点', + dataIndex: 'currentTaskName', + width: 100, + }, + { + title: '流程状态', + dataIndex: 'processStatus', + width: 100, + }, + { + title: '创建时间', + dataIndex: 'createTime', + width: 100, + }, + // { + // title: '发起单位', + // dataIndex: 'workplace', + // width: 100, + // }, + // { + // title: '发起单位类型', + // dataIndex: 'workplaceTpye', + // width: 200, + // }, + // { + // title: '联系电话', + // width: 150, + // dataIndex: 'phone', + // }, +]; + +export const searchFormSchema: FormSchema[] = [ + { + label: '项目名称', + field: 'projectName', + component: 'Input', + //colProps: { span: 6 }, + }, + { + label: '项目编号', + field: 'projectId', + component: 'Input', + //colProps: { span: 6 }, + }, + { + label: '流程id', + field: 'projectId', + component: 'Input', + //colProps: { span: 6 }, + } + +]; diff --git a/src/views/myWork/completed/index.vue b/src/views/myWork/completed/index.vue new file mode 100644 index 0000000..6890b2a --- /dev/null +++ b/src/views/myWork/completed/index.vue @@ -0,0 +1,91 @@ + + + + + \ No newline at end of file diff --git a/src/views/myWork/inComplete/inComplectedDetail.vue b/src/views/myWork/inComplete/inComplectedDetail.vue new file mode 100644 index 0000000..f44ef9e --- /dev/null +++ b/src/views/myWork/inComplete/inComplectedDetail.vue @@ -0,0 +1,127 @@ + + + +../datamodule/inComplected.data \ No newline at end of file diff --git a/src/views/myWork/inComplete/inComplete.api.ts b/src/views/myWork/inComplete/inComplete.api.ts new file mode 100644 index 0000000..cb4ec41 --- /dev/null +++ b/src/views/myWork/inComplete/inComplete.api.ts @@ -0,0 +1,14 @@ +import { defHttp } from '/@/utils/http/axios'; + +export enum Api { + saveprojectInfo="", + myTaskList='/workflow/myTaskList', + submitTask="/huzhouProject/approveProjectInfo", + myCompleteTask='/workflow/myCompleteTask' +} +/** + * 提交入库申请流程 + */ +export const myTaskList = (params) => defHttp.get({ url: Api.myTaskList, params }) +export const submitTask = (params) => defHttp.post({ url: Api.submitTask, params }) +export const myCompleteTask = (params) => defHttp.get({ url: Api.myCompleteTask, params }) \ No newline at end of file diff --git a/src/views/myWork/inComplete/inComplete.data.ts b/src/views/myWork/inComplete/inComplete.data.ts new file mode 100644 index 0000000..9022cd4 --- /dev/null +++ b/src/views/myWork/inComplete/inComplete.data.ts @@ -0,0 +1,182 @@ +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 +
+ + + + + + + + + +
+ + + + + \ No newline at end of file diff --git a/src/views/projectLib/initiatesProjects/index.vue b/src/views/projectLib/initiatesProjects/index.vue index 105fca6..185519c 100644 --- a/src/views/projectLib/initiatesProjects/index.vue +++ b/src/views/projectLib/initiatesProjects/index.vue @@ -13,8 +13,7 @@ - - + @@ -113,12 +112,12 @@ - + - + @@ -126,12 +125,12 @@ - + - + @@ -139,12 +138,12 @@ - + - + @@ -153,7 +152,9 @@
发起入库申请 - 取消 + 创建流程 + +
@@ -162,9 +163,10 @@ import { reactive } from 'vue' import { defHttp } from '/@/utils/http/axios'; import { Modal } from 'ant-design-vue'; - +import { getDictItemsByCode } from '/@/utils/dict/index'; +import {submitProjectInfo,Api} from "./initiatesProjects.api"; // do not use same name with ref -const projectForm = reactive({ +let projectForm = reactive({ projectName: '', projectType: '', dutyWorkplace: '', @@ -179,17 +181,17 @@ const projectForm = reactive({ superLeader: '', projectContacts: "", - bearbuildContactor: '', - bearbuildOrg: "", - buildContactor: "", - buildOrg: "", - supervisorContactor: "", - supervisorOrg: "", + contructorContactor: '', + contructor: "", + ownerContactor: "", + owner: "", + controlerContactor: "", + controler: "", manageContactor: "", manageOrg: "" }) - +const projectTypeDict = getDictItemsByCode("projectType") const onSubmit = () => { Modal.confirm({ title: '提示窗口', @@ -197,12 +199,25 @@ const onSubmit = () => { okText: '确认', cancelText: '取消', onOk: () => { - return defHttp.delete({ url: Api.deleteBatch, data: params }, { joinParamsToUrl: true }).then(() => { - handleSuccess(); - }); + //, { joinParamsToUrl: true } + return defHttp.post({ url: Api.submitProjectInfo, data: projectForm }).then(()=>{ + projectForm = clearObjectValues(projectForm); + }) }, }); } + async function craeteprocess() { + const res = await submitProjectInfo({a:"111"}); + console.log(res) + } + function clearObjectValues(obj) { + for (let key in obj) { + if (obj.hasOwnProperty(key)) { + obj[key] = null + } + } + return obj; +} diff --git a/src/views/projectLib/projectInfo/index copy.vue b/src/views/projectLib/projectInfo/index copy.vue deleted file mode 100644 index 79bcc2a..0000000 --- a/src/views/projectLib/projectInfo/index copy.vue +++ /dev/null @@ -1,38 +0,0 @@ - - - - - diff --git a/src/views/projectLib/projectInfo/index.less b/src/views/projectLib/projectInfo/index.less deleted file mode 100644 index 61b73d4..0000000 --- a/src/views/projectLib/projectInfo/index.less +++ /dev/null @@ -1,13 +0,0 @@ -//noinspection LessUnresolvedVariable -@prefix-cls: ~'@{namespace}-address-list'; - -.@{prefix-cls} { - // update-begin-author:liusq date:20230625 for: [issues/563]暗色主题部分失效 - background-color: @component-background; - // update-end-author:liusq date:20230625 for: [issues/563]暗色主题部分失效 - &--box { - .ant-tabs-nav { - padding: 0 20px; - } - } -} diff --git a/src/views/projectLib/projectInfo/index.vue b/src/views/projectLib/projectInfo/index.vue index 42e0d44..bf62316 100644 --- a/src/views/projectLib/projectInfo/index.vue +++ b/src/views/projectLib/projectInfo/index.vue @@ -3,32 +3,52 @@ + + - + + + + + + + - -./projectInfo.data \ No newline at end of file + \ No newline at end of file diff --git a/src/views/projectLib/projectInfo/projectInfo.api.ts b/src/views/projectLib/projectInfo/projectInfo.api.ts index 4890d34..023b80b 100644 --- a/src/views/projectLib/projectInfo/projectInfo.api.ts +++ b/src/views/projectLib/projectInfo/projectInfo.api.ts @@ -2,18 +2,19 @@ import { defHttp } from '/@/utils/http/axios'; export enum Api { list = '/sys/user/queryByOrgCodeForAddressList', - positionList = '/sys/position/list', - queryDepartTreeSync = '/sys/sysDepart/queryDepartTreeSync', + queryProcessInfo = '/workflow/getprocessInfo', + queryProjectInfoById = '/huzhouProject/queryProjectInfoById', + projectInfoPageList="/huzhouProject/projectInfoPageList" } /** * 获取部门树列表 */ -export const queryDepartTreeSync = (params?) => defHttp.get({ url: Api.queryDepartTreeSync, params }); +export const queryProjectInfoById = (params?) => defHttp.get({ url: Api.queryProjectInfoById, params }); /** * 部门用户信息 */ -export const list = (params?) => defHttp.get({ url: Api.list, params }); +export const projectInfoPageList = (params?) => defHttp.get({ url: Api.projectInfoPageList, params }); /** * 职务list */ -export const positionList = (params?) => defHttp.get({ url: Api.positionList, params }); +export const queryProcessInfo = (params?) => defHttp.get({ url: Api.queryProcessInfo, params }); diff --git a/src/views/projectLib/projectInfo/projectInfo.data.ts b/src/views/projectLib/projectInfo/projectInfo.data.ts index 69b46be..245587b 100644 --- a/src/views/projectLib/projectInfo/projectInfo.data.ts +++ b/src/views/projectLib/projectInfo/projectInfo.data.ts @@ -1,12 +1,29 @@ import { FormSchema } from '/@/components/Form'; import { BasicColumn } from '/@/components/Table'; +import { getDictItemsByCode } from '/@/utils/dict/index'; +import { UploadTypeEnum } from '/@/components/Form/src/jeecg/components/JUpload'; +const projectTypeDicts:Array = getDictItemsByCode("projectType") +const approvalRsesults:Array = getDictItemsByCode("approvalResult") + +function projectTypeDict(){ + for(let i = 0;i { + for(let i =0;i + + 项目入库详情 + + 上传项目资料 + + + + +