diff --git a/src/api/measure/source.ts b/src/api/measure/source.ts new file mode 100644 index 0000000..1b8bf27 --- /dev/null +++ b/src/api/measure/source.ts @@ -0,0 +1,84 @@ +/** + * 溯源供方请求接口 + */ +import request from '../index' +const prefix = '/meter' + +// 列表查询 +export function getSoucreList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/supplier/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function getSoucreListDelete(data: object) { + return request({ + url: `${prefix}/supplier/delete`, + method: 'post', + data, + }) +} + +// 查看详情 +export function getSoucreListDetail(data: object) { + return request({ + url: `${prefix}/supplier/detail`, + method: 'post', + data, + }) +} + +// 省级联动 +export function getSoucreListlevelType(pid: string) { + return request({ + url: `/sys/area/list?pid=${pid}`, + method: 'get', + }) +} + +// 提交数据 +export function sourceSubmit(data: object) { + return request({ + url: '/meter/supplier/submit', + method: 'post', + data, + }) +} +// 保存数据 +export function sourceSave(data: object) { + return request({ + url: `${prefix}/supplier/save`, + method: 'post', + data, + }) +} +// 更新数据 +export function getSoucreLisUpdate(data: object) { + return request({ + url: `${prefix}/supplier/update`, + method: 'post', + data, + }) +} + +// 导出详情 +export function getSoucreLisListExport(data: object) { + return request({ + url: `${prefix}/supplier/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 溯源供方审批接口 +export function getapprovalListPage(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/supplier/approval/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} diff --git a/src/api/measure/source.ts b/src/api/measure/source.ts new file mode 100644 index 0000000..1b8bf27 --- /dev/null +++ b/src/api/measure/source.ts @@ -0,0 +1,84 @@ +/** + * 溯源供方请求接口 + */ +import request from '../index' +const prefix = '/meter' + +// 列表查询 +export function getSoucreList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/supplier/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function getSoucreListDelete(data: object) { + return request({ + url: `${prefix}/supplier/delete`, + method: 'post', + data, + }) +} + +// 查看详情 +export function getSoucreListDetail(data: object) { + return request({ + url: `${prefix}/supplier/detail`, + method: 'post', + data, + }) +} + +// 省级联动 +export function getSoucreListlevelType(pid: string) { + return request({ + url: `/sys/area/list?pid=${pid}`, + method: 'get', + }) +} + +// 提交数据 +export function sourceSubmit(data: object) { + return request({ + url: '/meter/supplier/submit', + method: 'post', + data, + }) +} +// 保存数据 +export function sourceSave(data: object) { + return request({ + url: `${prefix}/supplier/save`, + method: 'post', + data, + }) +} +// 更新数据 +export function getSoucreLisUpdate(data: object) { + return request({ + url: `${prefix}/supplier/update`, + method: 'post', + data, + }) +} + +// 导出详情 +export function getSoucreLisListExport(data: object) { + return request({ + url: `${prefix}/supplier/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 溯源供方审批接口 +export function getapprovalListPage(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/supplier/approval/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} diff --git a/src/api/system/source.ts b/src/api/system/source.ts deleted file mode 100644 index 93f5f12..0000000 --- a/src/api/system/source.ts +++ /dev/null @@ -1,76 +0,0 @@ -/** - * 溯源供方请求接口 - */ -import request from '../index' -const prefix = '/meter' - -// 列表查询 -export function getSoucreList(data: object) { - return request({ - url: `${prefix}/supplier/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 数据删除 -export function getSoucreListDelete(data: object) { - return request({ - url: `${prefix}/supplier/delete`, - method: 'post', - data, - }) -} - -// 查看详情 -export function getSoucreListDetail(data: object) { - return request({ - url: `${prefix}/supplier/detail`, - method: 'post', - data, - }) -} - -// 省级联动 -export function getSoucreListlevelType(pid: string) { - return request({ - url: `/sys/area/list?pid=${pid}`, - method: 'get', - }) -} - -// 新增数据 -export function getSoucreListAdd(data: object) { - return request({ - url: `${prefix}/supplier/add`, - method: 'post', - data, - }) -} -// 更新数据 -export function getSoucreLisUpdate(data: object) { - return request({ - url: `${prefix}/supplier/update`, - method: 'post', - data, - }) -} - -// 导出详情 -export function getSoucreLisListExport(data: object) { - return request({ - url: `${prefix}/supplier/listExport`, - method: 'post', - responseType: 'blob', - data, - }) -} - -// 溯源供方审批接口 -export function getapprovalListPage(data: object) { - return request({ - url: `${prefix}/supplier/approval/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} diff --git a/src/api/measure/source.ts b/src/api/measure/source.ts new file mode 100644 index 0000000..1b8bf27 --- /dev/null +++ b/src/api/measure/source.ts @@ -0,0 +1,84 @@ +/** + * 溯源供方请求接口 + */ +import request from '../index' +const prefix = '/meter' + +// 列表查询 +export function getSoucreList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/supplier/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function getSoucreListDelete(data: object) { + return request({ + url: `${prefix}/supplier/delete`, + method: 'post', + data, + }) +} + +// 查看详情 +export function getSoucreListDetail(data: object) { + return request({ + url: `${prefix}/supplier/detail`, + method: 'post', + data, + }) +} + +// 省级联动 +export function getSoucreListlevelType(pid: string) { + return request({ + url: `/sys/area/list?pid=${pid}`, + method: 'get', + }) +} + +// 提交数据 +export function sourceSubmit(data: object) { + return request({ + url: '/meter/supplier/submit', + method: 'post', + data, + }) +} +// 保存数据 +export function sourceSave(data: object) { + return request({ + url: `${prefix}/supplier/save`, + method: 'post', + data, + }) +} +// 更新数据 +export function getSoucreLisUpdate(data: object) { + return request({ + url: `${prefix}/supplier/update`, + method: 'post', + data, + }) +} + +// 导出详情 +export function getSoucreLisListExport(data: object) { + return request({ + url: `${prefix}/supplier/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 溯源供方审批接口 +export function getapprovalListPage(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/supplier/approval/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} diff --git a/src/api/system/source.ts b/src/api/system/source.ts deleted file mode 100644 index 93f5f12..0000000 --- a/src/api/system/source.ts +++ /dev/null @@ -1,76 +0,0 @@ -/** - * 溯源供方请求接口 - */ -import request from '../index' -const prefix = '/meter' - -// 列表查询 -export function getSoucreList(data: object) { - return request({ - url: `${prefix}/supplier/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 数据删除 -export function getSoucreListDelete(data: object) { - return request({ - url: `${prefix}/supplier/delete`, - method: 'post', - data, - }) -} - -// 查看详情 -export function getSoucreListDetail(data: object) { - return request({ - url: `${prefix}/supplier/detail`, - method: 'post', - data, - }) -} - -// 省级联动 -export function getSoucreListlevelType(pid: string) { - return request({ - url: `/sys/area/list?pid=${pid}`, - method: 'get', - }) -} - -// 新增数据 -export function getSoucreListAdd(data: object) { - return request({ - url: `${prefix}/supplier/add`, - method: 'post', - data, - }) -} -// 更新数据 -export function getSoucreLisUpdate(data: object) { - return request({ - url: `${prefix}/supplier/update`, - method: 'post', - data, - }) -} - -// 导出详情 -export function getSoucreLisListExport(data: object) { - return request({ - url: `${prefix}/supplier/listExport`, - method: 'post', - responseType: 'blob', - data, - }) -} - -// 溯源供方审批接口 -export function getapprovalListPage(data: object) { - return request({ - url: `${prefix}/supplier/approval/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} diff --git a/src/components.d.ts b/src/components.d.ts index 280906e..d419887 100644 --- a/src/components.d.ts +++ b/src/components.d.ts @@ -55,7 +55,6 @@ SelectEmployeesDialog: typeof import('./components/dialog/selectEmployeesDialog.vue')['default'] SelectResult: typeof import('./components/workFlow/selectResult.vue')['default'] SelectRoleDialog: typeof import('./components/dialog/selectRoleDialog.vue')['default'] - SelectTree: typeof import('./components/SelectTree/index.vue')['default'] SvgIcon: typeof import('./components/SvgIcon/index.vue')['default'] SystemInfo: typeof import('./components/SystemInfo/index.vue')['default'] TableContainer: typeof import('./components/TableContainer/index.vue')['default'] diff --git a/src/api/measure/source.ts b/src/api/measure/source.ts new file mode 100644 index 0000000..1b8bf27 --- /dev/null +++ b/src/api/measure/source.ts @@ -0,0 +1,84 @@ +/** + * 溯源供方请求接口 + */ +import request from '../index' +const prefix = '/meter' + +// 列表查询 +export function getSoucreList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/supplier/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function getSoucreListDelete(data: object) { + return request({ + url: `${prefix}/supplier/delete`, + method: 'post', + data, + }) +} + +// 查看详情 +export function getSoucreListDetail(data: object) { + return request({ + url: `${prefix}/supplier/detail`, + method: 'post', + data, + }) +} + +// 省级联动 +export function getSoucreListlevelType(pid: string) { + return request({ + url: `/sys/area/list?pid=${pid}`, + method: 'get', + }) +} + +// 提交数据 +export function sourceSubmit(data: object) { + return request({ + url: '/meter/supplier/submit', + method: 'post', + data, + }) +} +// 保存数据 +export function sourceSave(data: object) { + return request({ + url: `${prefix}/supplier/save`, + method: 'post', + data, + }) +} +// 更新数据 +export function getSoucreLisUpdate(data: object) { + return request({ + url: `${prefix}/supplier/update`, + method: 'post', + data, + }) +} + +// 导出详情 +export function getSoucreLisListExport(data: object) { + return request({ + url: `${prefix}/supplier/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 溯源供方审批接口 +export function getapprovalListPage(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/supplier/approval/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} diff --git a/src/api/system/source.ts b/src/api/system/source.ts deleted file mode 100644 index 93f5f12..0000000 --- a/src/api/system/source.ts +++ /dev/null @@ -1,76 +0,0 @@ -/** - * 溯源供方请求接口 - */ -import request from '../index' -const prefix = '/meter' - -// 列表查询 -export function getSoucreList(data: object) { - return request({ - url: `${prefix}/supplier/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 数据删除 -export function getSoucreListDelete(data: object) { - return request({ - url: `${prefix}/supplier/delete`, - method: 'post', - data, - }) -} - -// 查看详情 -export function getSoucreListDetail(data: object) { - return request({ - url: `${prefix}/supplier/detail`, - method: 'post', - data, - }) -} - -// 省级联动 -export function getSoucreListlevelType(pid: string) { - return request({ - url: `/sys/area/list?pid=${pid}`, - method: 'get', - }) -} - -// 新增数据 -export function getSoucreListAdd(data: object) { - return request({ - url: `${prefix}/supplier/add`, - method: 'post', - data, - }) -} -// 更新数据 -export function getSoucreLisUpdate(data: object) { - return request({ - url: `${prefix}/supplier/update`, - method: 'post', - data, - }) -} - -// 导出详情 -export function getSoucreLisListExport(data: object) { - return request({ - url: `${prefix}/supplier/listExport`, - method: 'post', - responseType: 'blob', - data, - }) -} - -// 溯源供方审批接口 -export function getapprovalListPage(data: object) { - return request({ - url: `${prefix}/supplier/approval/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} diff --git a/src/components.d.ts b/src/components.d.ts index 280906e..d419887 100644 --- a/src/components.d.ts +++ b/src/components.d.ts @@ -55,7 +55,6 @@ SelectEmployeesDialog: typeof import('./components/dialog/selectEmployeesDialog.vue')['default'] SelectResult: typeof import('./components/workFlow/selectResult.vue')['default'] SelectRoleDialog: typeof import('./components/dialog/selectRoleDialog.vue')['default'] - SelectTree: typeof import('./components/SelectTree/index.vue')['default'] SvgIcon: typeof import('./components/SvgIcon/index.vue')['default'] SystemInfo: typeof import('./components/SystemInfo/index.vue')['default'] TableContainer: typeof import('./components/TableContainer/index.vue')['default'] diff --git a/src/router/modules/measure.ts b/src/router/modules/measure.ts index f114ca2..73a7470 100644 --- a/src/router/modules/measure.ts +++ b/src/router/modules/measure.ts @@ -423,7 +423,7 @@ { path: 'approve/:type/:id?', name: 'ListpageSourceAdd', - component: () => import('@/views/measure/source/components/listPageAdd.vue'), + component: () => import('@/views/measure/source/components/sourceApprovalDetail.vue'), meta: { title: '溯源供方审批', icon: 'ep:key', diff --git a/src/api/measure/source.ts b/src/api/measure/source.ts new file mode 100644 index 0000000..1b8bf27 --- /dev/null +++ b/src/api/measure/source.ts @@ -0,0 +1,84 @@ +/** + * 溯源供方请求接口 + */ +import request from '../index' +const prefix = '/meter' + +// 列表查询 +export function getSoucreList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/supplier/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function getSoucreListDelete(data: object) { + return request({ + url: `${prefix}/supplier/delete`, + method: 'post', + data, + }) +} + +// 查看详情 +export function getSoucreListDetail(data: object) { + return request({ + url: `${prefix}/supplier/detail`, + method: 'post', + data, + }) +} + +// 省级联动 +export function getSoucreListlevelType(pid: string) { + return request({ + url: `/sys/area/list?pid=${pid}`, + method: 'get', + }) +} + +// 提交数据 +export function sourceSubmit(data: object) { + return request({ + url: '/meter/supplier/submit', + method: 'post', + data, + }) +} +// 保存数据 +export function sourceSave(data: object) { + return request({ + url: `${prefix}/supplier/save`, + method: 'post', + data, + }) +} +// 更新数据 +export function getSoucreLisUpdate(data: object) { + return request({ + url: `${prefix}/supplier/update`, + method: 'post', + data, + }) +} + +// 导出详情 +export function getSoucreLisListExport(data: object) { + return request({ + url: `${prefix}/supplier/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 溯源供方审批接口 +export function getapprovalListPage(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/supplier/approval/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} diff --git a/src/api/system/source.ts b/src/api/system/source.ts deleted file mode 100644 index 93f5f12..0000000 --- a/src/api/system/source.ts +++ /dev/null @@ -1,76 +0,0 @@ -/** - * 溯源供方请求接口 - */ -import request from '../index' -const prefix = '/meter' - -// 列表查询 -export function getSoucreList(data: object) { - return request({ - url: `${prefix}/supplier/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 数据删除 -export function getSoucreListDelete(data: object) { - return request({ - url: `${prefix}/supplier/delete`, - method: 'post', - data, - }) -} - -// 查看详情 -export function getSoucreListDetail(data: object) { - return request({ - url: `${prefix}/supplier/detail`, - method: 'post', - data, - }) -} - -// 省级联动 -export function getSoucreListlevelType(pid: string) { - return request({ - url: `/sys/area/list?pid=${pid}`, - method: 'get', - }) -} - -// 新增数据 -export function getSoucreListAdd(data: object) { - return request({ - url: `${prefix}/supplier/add`, - method: 'post', - data, - }) -} -// 更新数据 -export function getSoucreLisUpdate(data: object) { - return request({ - url: `${prefix}/supplier/update`, - method: 'post', - data, - }) -} - -// 导出详情 -export function getSoucreLisListExport(data: object) { - return request({ - url: `${prefix}/supplier/listExport`, - method: 'post', - responseType: 'blob', - data, - }) -} - -// 溯源供方审批接口 -export function getapprovalListPage(data: object) { - return request({ - url: `${prefix}/supplier/approval/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} diff --git a/src/components.d.ts b/src/components.d.ts index 280906e..d419887 100644 --- a/src/components.d.ts +++ b/src/components.d.ts @@ -55,7 +55,6 @@ SelectEmployeesDialog: typeof import('./components/dialog/selectEmployeesDialog.vue')['default'] SelectResult: typeof import('./components/workFlow/selectResult.vue')['default'] SelectRoleDialog: typeof import('./components/dialog/selectRoleDialog.vue')['default'] - SelectTree: typeof import('./components/SelectTree/index.vue')['default'] SvgIcon: typeof import('./components/SvgIcon/index.vue')['default'] SystemInfo: typeof import('./components/SystemInfo/index.vue')['default'] TableContainer: typeof import('./components/TableContainer/index.vue')['default'] diff --git a/src/router/modules/measure.ts b/src/router/modules/measure.ts index f114ca2..73a7470 100644 --- a/src/router/modules/measure.ts +++ b/src/router/modules/measure.ts @@ -423,7 +423,7 @@ { path: 'approve/:type/:id?', name: 'ListpageSourceAdd', - component: () => import('@/views/measure/source/components/listPageAdd.vue'), + component: () => import('@/views/measure/source/components/sourceApprovalDetail.vue'), meta: { title: '溯源供方审批', icon: 'ep:key', diff --git a/src/store/modules/dict.ts b/src/store/modules/dict.ts index 7de3b8b..0719c75 100644 --- a/src/store/modules/dict.ts +++ b/src/store/modules/dict.ts @@ -6,6 +6,15 @@ state: () => ({ allDeptList: [] as DeptTreeNode[], // 所有部门列表 companyList: [] as DeptTreeNode[], // 公司列表 + approvalStatusList: { + 全部: '0', + 草稿箱: '1', + 待审批: '2', + 审批中: '3', + 已通过: '4', + 未通过: '5', + 已取消: '6', + }, // 审批状态 }), getters: { getAllDeptList: (state) => { @@ -14,6 +23,9 @@ getCompanyList: (state) => { return state.companyList }, + getApprovalStatus: (state) => { + return state.approvalStatusList + }, }, actions: { setAllDeptList(list: DeptTreeNode[]) { diff --git a/src/api/measure/source.ts b/src/api/measure/source.ts new file mode 100644 index 0000000..1b8bf27 --- /dev/null +++ b/src/api/measure/source.ts @@ -0,0 +1,84 @@ +/** + * 溯源供方请求接口 + */ +import request from '../index' +const prefix = '/meter' + +// 列表查询 +export function getSoucreList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/supplier/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function getSoucreListDelete(data: object) { + return request({ + url: `${prefix}/supplier/delete`, + method: 'post', + data, + }) +} + +// 查看详情 +export function getSoucreListDetail(data: object) { + return request({ + url: `${prefix}/supplier/detail`, + method: 'post', + data, + }) +} + +// 省级联动 +export function getSoucreListlevelType(pid: string) { + return request({ + url: `/sys/area/list?pid=${pid}`, + method: 'get', + }) +} + +// 提交数据 +export function sourceSubmit(data: object) { + return request({ + url: '/meter/supplier/submit', + method: 'post', + data, + }) +} +// 保存数据 +export function sourceSave(data: object) { + return request({ + url: `${prefix}/supplier/save`, + method: 'post', + data, + }) +} +// 更新数据 +export function getSoucreLisUpdate(data: object) { + return request({ + url: `${prefix}/supplier/update`, + method: 'post', + data, + }) +} + +// 导出详情 +export function getSoucreLisListExport(data: object) { + return request({ + url: `${prefix}/supplier/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 溯源供方审批接口 +export function getapprovalListPage(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/supplier/approval/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} diff --git a/src/api/system/source.ts b/src/api/system/source.ts deleted file mode 100644 index 93f5f12..0000000 --- a/src/api/system/source.ts +++ /dev/null @@ -1,76 +0,0 @@ -/** - * 溯源供方请求接口 - */ -import request from '../index' -const prefix = '/meter' - -// 列表查询 -export function getSoucreList(data: object) { - return request({ - url: `${prefix}/supplier/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 数据删除 -export function getSoucreListDelete(data: object) { - return request({ - url: `${prefix}/supplier/delete`, - method: 'post', - data, - }) -} - -// 查看详情 -export function getSoucreListDetail(data: object) { - return request({ - url: `${prefix}/supplier/detail`, - method: 'post', - data, - }) -} - -// 省级联动 -export function getSoucreListlevelType(pid: string) { - return request({ - url: `/sys/area/list?pid=${pid}`, - method: 'get', - }) -} - -// 新增数据 -export function getSoucreListAdd(data: object) { - return request({ - url: `${prefix}/supplier/add`, - method: 'post', - data, - }) -} -// 更新数据 -export function getSoucreLisUpdate(data: object) { - return request({ - url: `${prefix}/supplier/update`, - method: 'post', - data, - }) -} - -// 导出详情 -export function getSoucreLisListExport(data: object) { - return request({ - url: `${prefix}/supplier/listExport`, - method: 'post', - responseType: 'blob', - data, - }) -} - -// 溯源供方审批接口 -export function getapprovalListPage(data: object) { - return request({ - url: `${prefix}/supplier/approval/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} diff --git a/src/components.d.ts b/src/components.d.ts index 280906e..d419887 100644 --- a/src/components.d.ts +++ b/src/components.d.ts @@ -55,7 +55,6 @@ SelectEmployeesDialog: typeof import('./components/dialog/selectEmployeesDialog.vue')['default'] SelectResult: typeof import('./components/workFlow/selectResult.vue')['default'] SelectRoleDialog: typeof import('./components/dialog/selectRoleDialog.vue')['default'] - SelectTree: typeof import('./components/SelectTree/index.vue')['default'] SvgIcon: typeof import('./components/SvgIcon/index.vue')['default'] SystemInfo: typeof import('./components/SystemInfo/index.vue')['default'] TableContainer: typeof import('./components/TableContainer/index.vue')['default'] diff --git a/src/router/modules/measure.ts b/src/router/modules/measure.ts index f114ca2..73a7470 100644 --- a/src/router/modules/measure.ts +++ b/src/router/modules/measure.ts @@ -423,7 +423,7 @@ { path: 'approve/:type/:id?', name: 'ListpageSourceAdd', - component: () => import('@/views/measure/source/components/listPageAdd.vue'), + component: () => import('@/views/measure/source/components/sourceApprovalDetail.vue'), meta: { title: '溯源供方审批', icon: 'ep:key', diff --git a/src/store/modules/dict.ts b/src/store/modules/dict.ts index 7de3b8b..0719c75 100644 --- a/src/store/modules/dict.ts +++ b/src/store/modules/dict.ts @@ -6,6 +6,15 @@ state: () => ({ allDeptList: [] as DeptTreeNode[], // 所有部门列表 companyList: [] as DeptTreeNode[], // 公司列表 + approvalStatusList: { + 全部: '0', + 草稿箱: '1', + 待审批: '2', + 审批中: '3', + 已通过: '4', + 未通过: '5', + 已取消: '6', + }, // 审批状态 }), getters: { getAllDeptList: (state) => { @@ -14,6 +23,9 @@ getCompanyList: (state) => { return state.companyList }, + getApprovalStatus: (state) => { + return state.approvalStatusList + }, }, actions: { setAllDeptList(list: DeptTreeNode[]) { diff --git a/src/utils/scheduleDict.ts b/src/utils/scheduleDict.ts index 21d3721..9db0c6b 100644 --- a/src/utils/scheduleDict.ts +++ b/src/utils/scheduleDict.ts @@ -2,19 +2,19 @@ * 流程字典, 流程代号:流程id */ export enum SCHEDULE { - FILE_APPROVAL = '1', // 文件审批, - TRAIN_APPROVAL = '2', // 培训计划审批 - SUPPLIER_APPROVAL = '3', // 溯源供方审批 - STANDARD_CHANGE_APPROVAL = '4', // 标准装置更换申请 - STANDARD_PAUSE_APPROVAL = '5', // 标准装置暂停申请 - STANDARD_REVERT_APPROVAL = '6', // 标准装置撤销申请 - STANDARD_RESUME_APPROVAL = '7', // 标准装置恢复申请 - STANDARD_CHECK_APPROVAL = '8', // 标准装置复查申请 - DEVICE_UNUSED_APPROVAL = '9', // 设备闲置申请 - DEVICE_SEALED_APPROVAL = '10', // 设备封存申请 - DEVICE_UNSEALED_APPROVAL = '11', // 设备启封申请 - DEVICE_SCRAPPED_ROVAL = '12', // 设备报废申请 - DEVICE_HANDLE_APPROVAL = '13', // 设备处置申请 - DEVICE_CONSUMING_APPROVAL = '14', // 设备领用申请 - DEVICE_BORROW_APPROVAL = '15', // 设备借用申请 + FILE_APPROVAL = 'jlglwjsp', // 文件审批, + TRAIN_APPROVAL = 'jlglpxjhsp', // 培训计划审批 + SUPPLIER_APPROVAL = 'jlglsygfsp', // 溯源供方审批 + STANDARD_CHANGE_APPROVAL = 'sbglbzzzghsq', // 标准装置更换申请 + STANDARD_PAUSE_APPROVAL = 'sbglbzzzghsq', // 标准装置暂停申请 + STANDARD_REVERT_APPROVAL = 'sbglbzzzghsq', // 标准装置撤销申请 + STANDARD_RESUME_APPROVAL = 'sbglbzzzghsq', // 标准装置恢复申请 + STANDARD_CHECK_APPROVAL = 'sbglbzzzfcsq', // 标准装置复查申请 + DEVICE_UNUSED_APPROVAL = 'sbglsbxzsq', // 设备闲置申请 + DEVICE_SEALED_APPROVAL = 'sbglsbfcsq', // 设备封存申请 + DEVICE_UNSEALED_APPROVAL = 'sbglsbqfsq', // 设备启封申请 + DEVICE_SCRAPPED_ROVAL = 'sbglsbbfsq', // 设备报废申请 + DEVICE_HANDLE_APPROVAL = 'sbglsbczsq', // 设备处置申请 + DEVICE_CONSUMING_APPROVAL = 'sbglsblysq', // 设备领用申请 + DEVICE_BORROW_APPROVAL = 'sbglsbjysq', // 设备借用申请 } diff --git a/src/api/measure/source.ts b/src/api/measure/source.ts new file mode 100644 index 0000000..1b8bf27 --- /dev/null +++ b/src/api/measure/source.ts @@ -0,0 +1,84 @@ +/** + * 溯源供方请求接口 + */ +import request from '../index' +const prefix = '/meter' + +// 列表查询 +export function getSoucreList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/supplier/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function getSoucreListDelete(data: object) { + return request({ + url: `${prefix}/supplier/delete`, + method: 'post', + data, + }) +} + +// 查看详情 +export function getSoucreListDetail(data: object) { + return request({ + url: `${prefix}/supplier/detail`, + method: 'post', + data, + }) +} + +// 省级联动 +export function getSoucreListlevelType(pid: string) { + return request({ + url: `/sys/area/list?pid=${pid}`, + method: 'get', + }) +} + +// 提交数据 +export function sourceSubmit(data: object) { + return request({ + url: '/meter/supplier/submit', + method: 'post', + data, + }) +} +// 保存数据 +export function sourceSave(data: object) { + return request({ + url: `${prefix}/supplier/save`, + method: 'post', + data, + }) +} +// 更新数据 +export function getSoucreLisUpdate(data: object) { + return request({ + url: `${prefix}/supplier/update`, + method: 'post', + data, + }) +} + +// 导出详情 +export function getSoucreLisListExport(data: object) { + return request({ + url: `${prefix}/supplier/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 溯源供方审批接口 +export function getapprovalListPage(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/supplier/approval/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} diff --git a/src/api/system/source.ts b/src/api/system/source.ts deleted file mode 100644 index 93f5f12..0000000 --- a/src/api/system/source.ts +++ /dev/null @@ -1,76 +0,0 @@ -/** - * 溯源供方请求接口 - */ -import request from '../index' -const prefix = '/meter' - -// 列表查询 -export function getSoucreList(data: object) { - return request({ - url: `${prefix}/supplier/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 数据删除 -export function getSoucreListDelete(data: object) { - return request({ - url: `${prefix}/supplier/delete`, - method: 'post', - data, - }) -} - -// 查看详情 -export function getSoucreListDetail(data: object) { - return request({ - url: `${prefix}/supplier/detail`, - method: 'post', - data, - }) -} - -// 省级联动 -export function getSoucreListlevelType(pid: string) { - return request({ - url: `/sys/area/list?pid=${pid}`, - method: 'get', - }) -} - -// 新增数据 -export function getSoucreListAdd(data: object) { - return request({ - url: `${prefix}/supplier/add`, - method: 'post', - data, - }) -} -// 更新数据 -export function getSoucreLisUpdate(data: object) { - return request({ - url: `${prefix}/supplier/update`, - method: 'post', - data, - }) -} - -// 导出详情 -export function getSoucreLisListExport(data: object) { - return request({ - url: `${prefix}/supplier/listExport`, - method: 'post', - responseType: 'blob', - data, - }) -} - -// 溯源供方审批接口 -export function getapprovalListPage(data: object) { - return request({ - url: `${prefix}/supplier/approval/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} diff --git a/src/components.d.ts b/src/components.d.ts index 280906e..d419887 100644 --- a/src/components.d.ts +++ b/src/components.d.ts @@ -55,7 +55,6 @@ SelectEmployeesDialog: typeof import('./components/dialog/selectEmployeesDialog.vue')['default'] SelectResult: typeof import('./components/workFlow/selectResult.vue')['default'] SelectRoleDialog: typeof import('./components/dialog/selectRoleDialog.vue')['default'] - SelectTree: typeof import('./components/SelectTree/index.vue')['default'] SvgIcon: typeof import('./components/SvgIcon/index.vue')['default'] SystemInfo: typeof import('./components/SystemInfo/index.vue')['default'] TableContainer: typeof import('./components/TableContainer/index.vue')['default'] diff --git a/src/router/modules/measure.ts b/src/router/modules/measure.ts index f114ca2..73a7470 100644 --- a/src/router/modules/measure.ts +++ b/src/router/modules/measure.ts @@ -423,7 +423,7 @@ { path: 'approve/:type/:id?', name: 'ListpageSourceAdd', - component: () => import('@/views/measure/source/components/listPageAdd.vue'), + component: () => import('@/views/measure/source/components/sourceApprovalDetail.vue'), meta: { title: '溯源供方审批', icon: 'ep:key', diff --git a/src/store/modules/dict.ts b/src/store/modules/dict.ts index 7de3b8b..0719c75 100644 --- a/src/store/modules/dict.ts +++ b/src/store/modules/dict.ts @@ -6,6 +6,15 @@ state: () => ({ allDeptList: [] as DeptTreeNode[], // 所有部门列表 companyList: [] as DeptTreeNode[], // 公司列表 + approvalStatusList: { + 全部: '0', + 草稿箱: '1', + 待审批: '2', + 审批中: '3', + 已通过: '4', + 未通过: '5', + 已取消: '6', + }, // 审批状态 }), getters: { getAllDeptList: (state) => { @@ -14,6 +23,9 @@ getCompanyList: (state) => { return state.companyList }, + getApprovalStatus: (state) => { + return state.approvalStatusList + }, }, actions: { setAllDeptList(list: DeptTreeNode[]) { diff --git a/src/utils/scheduleDict.ts b/src/utils/scheduleDict.ts index 21d3721..9db0c6b 100644 --- a/src/utils/scheduleDict.ts +++ b/src/utils/scheduleDict.ts @@ -2,19 +2,19 @@ * 流程字典, 流程代号:流程id */ export enum SCHEDULE { - FILE_APPROVAL = '1', // 文件审批, - TRAIN_APPROVAL = '2', // 培训计划审批 - SUPPLIER_APPROVAL = '3', // 溯源供方审批 - STANDARD_CHANGE_APPROVAL = '4', // 标准装置更换申请 - STANDARD_PAUSE_APPROVAL = '5', // 标准装置暂停申请 - STANDARD_REVERT_APPROVAL = '6', // 标准装置撤销申请 - STANDARD_RESUME_APPROVAL = '7', // 标准装置恢复申请 - STANDARD_CHECK_APPROVAL = '8', // 标准装置复查申请 - DEVICE_UNUSED_APPROVAL = '9', // 设备闲置申请 - DEVICE_SEALED_APPROVAL = '10', // 设备封存申请 - DEVICE_UNSEALED_APPROVAL = '11', // 设备启封申请 - DEVICE_SCRAPPED_ROVAL = '12', // 设备报废申请 - DEVICE_HANDLE_APPROVAL = '13', // 设备处置申请 - DEVICE_CONSUMING_APPROVAL = '14', // 设备领用申请 - DEVICE_BORROW_APPROVAL = '15', // 设备借用申请 + FILE_APPROVAL = 'jlglwjsp', // 文件审批, + TRAIN_APPROVAL = 'jlglpxjhsp', // 培训计划审批 + SUPPLIER_APPROVAL = 'jlglsygfsp', // 溯源供方审批 + STANDARD_CHANGE_APPROVAL = 'sbglbzzzghsq', // 标准装置更换申请 + STANDARD_PAUSE_APPROVAL = 'sbglbzzzghsq', // 标准装置暂停申请 + STANDARD_REVERT_APPROVAL = 'sbglbzzzghsq', // 标准装置撤销申请 + STANDARD_RESUME_APPROVAL = 'sbglbzzzghsq', // 标准装置恢复申请 + STANDARD_CHECK_APPROVAL = 'sbglbzzzfcsq', // 标准装置复查申请 + DEVICE_UNUSED_APPROVAL = 'sbglsbxzsq', // 设备闲置申请 + DEVICE_SEALED_APPROVAL = 'sbglsbfcsq', // 设备封存申请 + DEVICE_UNSEALED_APPROVAL = 'sbglsbqfsq', // 设备启封申请 + DEVICE_SCRAPPED_ROVAL = 'sbglsbbfsq', // 设备报废申请 + DEVICE_HANDLE_APPROVAL = 'sbglsbczsq', // 设备处置申请 + DEVICE_CONSUMING_APPROVAL = 'sbglsblysq', // 设备领用申请 + DEVICE_BORROW_APPROVAL = 'sbglsbjysq', // 设备借用申请 } diff --git a/src/views/measure/source/approve.vue b/src/views/measure/source/approve.vue index 6227626..9ac8eea 100644 --- a/src/views/measure/source/approve.vue +++ b/src/views/measure/source/approve.vue @@ -1,52 +1,88 @@ - @@ -55,8 +91,8 @@ position: relative; .btns { - position: fixed; - top: 76px; + position: absolute; + top: -41px; right: 15px; z-index: 999; } diff --git a/src/api/measure/source.ts b/src/api/measure/source.ts new file mode 100644 index 0000000..1b8bf27 --- /dev/null +++ b/src/api/measure/source.ts @@ -0,0 +1,84 @@ +/** + * 溯源供方请求接口 + */ +import request from '../index' +const prefix = '/meter' + +// 列表查询 +export function getSoucreList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/supplier/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function getSoucreListDelete(data: object) { + return request({ + url: `${prefix}/supplier/delete`, + method: 'post', + data, + }) +} + +// 查看详情 +export function getSoucreListDetail(data: object) { + return request({ + url: `${prefix}/supplier/detail`, + method: 'post', + data, + }) +} + +// 省级联动 +export function getSoucreListlevelType(pid: string) { + return request({ + url: `/sys/area/list?pid=${pid}`, + method: 'get', + }) +} + +// 提交数据 +export function sourceSubmit(data: object) { + return request({ + url: '/meter/supplier/submit', + method: 'post', + data, + }) +} +// 保存数据 +export function sourceSave(data: object) { + return request({ + url: `${prefix}/supplier/save`, + method: 'post', + data, + }) +} +// 更新数据 +export function getSoucreLisUpdate(data: object) { + return request({ + url: `${prefix}/supplier/update`, + method: 'post', + data, + }) +} + +// 导出详情 +export function getSoucreLisListExport(data: object) { + return request({ + url: `${prefix}/supplier/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 溯源供方审批接口 +export function getapprovalListPage(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/supplier/approval/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} diff --git a/src/api/system/source.ts b/src/api/system/source.ts deleted file mode 100644 index 93f5f12..0000000 --- a/src/api/system/source.ts +++ /dev/null @@ -1,76 +0,0 @@ -/** - * 溯源供方请求接口 - */ -import request from '../index' -const prefix = '/meter' - -// 列表查询 -export function getSoucreList(data: object) { - return request({ - url: `${prefix}/supplier/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 数据删除 -export function getSoucreListDelete(data: object) { - return request({ - url: `${prefix}/supplier/delete`, - method: 'post', - data, - }) -} - -// 查看详情 -export function getSoucreListDetail(data: object) { - return request({ - url: `${prefix}/supplier/detail`, - method: 'post', - data, - }) -} - -// 省级联动 -export function getSoucreListlevelType(pid: string) { - return request({ - url: `/sys/area/list?pid=${pid}`, - method: 'get', - }) -} - -// 新增数据 -export function getSoucreListAdd(data: object) { - return request({ - url: `${prefix}/supplier/add`, - method: 'post', - data, - }) -} -// 更新数据 -export function getSoucreLisUpdate(data: object) { - return request({ - url: `${prefix}/supplier/update`, - method: 'post', - data, - }) -} - -// 导出详情 -export function getSoucreLisListExport(data: object) { - return request({ - url: `${prefix}/supplier/listExport`, - method: 'post', - responseType: 'blob', - data, - }) -} - -// 溯源供方审批接口 -export function getapprovalListPage(data: object) { - return request({ - url: `${prefix}/supplier/approval/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} diff --git a/src/components.d.ts b/src/components.d.ts index 280906e..d419887 100644 --- a/src/components.d.ts +++ b/src/components.d.ts @@ -55,7 +55,6 @@ SelectEmployeesDialog: typeof import('./components/dialog/selectEmployeesDialog.vue')['default'] SelectResult: typeof import('./components/workFlow/selectResult.vue')['default'] SelectRoleDialog: typeof import('./components/dialog/selectRoleDialog.vue')['default'] - SelectTree: typeof import('./components/SelectTree/index.vue')['default'] SvgIcon: typeof import('./components/SvgIcon/index.vue')['default'] SystemInfo: typeof import('./components/SystemInfo/index.vue')['default'] TableContainer: typeof import('./components/TableContainer/index.vue')['default'] diff --git a/src/router/modules/measure.ts b/src/router/modules/measure.ts index f114ca2..73a7470 100644 --- a/src/router/modules/measure.ts +++ b/src/router/modules/measure.ts @@ -423,7 +423,7 @@ { path: 'approve/:type/:id?', name: 'ListpageSourceAdd', - component: () => import('@/views/measure/source/components/listPageAdd.vue'), + component: () => import('@/views/measure/source/components/sourceApprovalDetail.vue'), meta: { title: '溯源供方审批', icon: 'ep:key', diff --git a/src/store/modules/dict.ts b/src/store/modules/dict.ts index 7de3b8b..0719c75 100644 --- a/src/store/modules/dict.ts +++ b/src/store/modules/dict.ts @@ -6,6 +6,15 @@ state: () => ({ allDeptList: [] as DeptTreeNode[], // 所有部门列表 companyList: [] as DeptTreeNode[], // 公司列表 + approvalStatusList: { + 全部: '0', + 草稿箱: '1', + 待审批: '2', + 审批中: '3', + 已通过: '4', + 未通过: '5', + 已取消: '6', + }, // 审批状态 }), getters: { getAllDeptList: (state) => { @@ -14,6 +23,9 @@ getCompanyList: (state) => { return state.companyList }, + getApprovalStatus: (state) => { + return state.approvalStatusList + }, }, actions: { setAllDeptList(list: DeptTreeNode[]) { diff --git a/src/utils/scheduleDict.ts b/src/utils/scheduleDict.ts index 21d3721..9db0c6b 100644 --- a/src/utils/scheduleDict.ts +++ b/src/utils/scheduleDict.ts @@ -2,19 +2,19 @@ * 流程字典, 流程代号:流程id */ export enum SCHEDULE { - FILE_APPROVAL = '1', // 文件审批, - TRAIN_APPROVAL = '2', // 培训计划审批 - SUPPLIER_APPROVAL = '3', // 溯源供方审批 - STANDARD_CHANGE_APPROVAL = '4', // 标准装置更换申请 - STANDARD_PAUSE_APPROVAL = '5', // 标准装置暂停申请 - STANDARD_REVERT_APPROVAL = '6', // 标准装置撤销申请 - STANDARD_RESUME_APPROVAL = '7', // 标准装置恢复申请 - STANDARD_CHECK_APPROVAL = '8', // 标准装置复查申请 - DEVICE_UNUSED_APPROVAL = '9', // 设备闲置申请 - DEVICE_SEALED_APPROVAL = '10', // 设备封存申请 - DEVICE_UNSEALED_APPROVAL = '11', // 设备启封申请 - DEVICE_SCRAPPED_ROVAL = '12', // 设备报废申请 - DEVICE_HANDLE_APPROVAL = '13', // 设备处置申请 - DEVICE_CONSUMING_APPROVAL = '14', // 设备领用申请 - DEVICE_BORROW_APPROVAL = '15', // 设备借用申请 + FILE_APPROVAL = 'jlglwjsp', // 文件审批, + TRAIN_APPROVAL = 'jlglpxjhsp', // 培训计划审批 + SUPPLIER_APPROVAL = 'jlglsygfsp', // 溯源供方审批 + STANDARD_CHANGE_APPROVAL = 'sbglbzzzghsq', // 标准装置更换申请 + STANDARD_PAUSE_APPROVAL = 'sbglbzzzghsq', // 标准装置暂停申请 + STANDARD_REVERT_APPROVAL = 'sbglbzzzghsq', // 标准装置撤销申请 + STANDARD_RESUME_APPROVAL = 'sbglbzzzghsq', // 标准装置恢复申请 + STANDARD_CHECK_APPROVAL = 'sbglbzzzfcsq', // 标准装置复查申请 + DEVICE_UNUSED_APPROVAL = 'sbglsbxzsq', // 设备闲置申请 + DEVICE_SEALED_APPROVAL = 'sbglsbfcsq', // 设备封存申请 + DEVICE_UNSEALED_APPROVAL = 'sbglsbqfsq', // 设备启封申请 + DEVICE_SCRAPPED_ROVAL = 'sbglsbbfsq', // 设备报废申请 + DEVICE_HANDLE_APPROVAL = 'sbglsbczsq', // 设备处置申请 + DEVICE_CONSUMING_APPROVAL = 'sbglsblysq', // 设备领用申请 + DEVICE_BORROW_APPROVAL = 'sbglsbjysq', // 设备借用申请 } diff --git a/src/views/measure/source/approve.vue b/src/views/measure/source/approve.vue index 6227626..9ac8eea 100644 --- a/src/views/measure/source/approve.vue +++ b/src/views/measure/source/approve.vue @@ -1,52 +1,88 @@ - @@ -55,8 +91,8 @@ position: relative; .btns { - position: fixed; - top: 76px; + position: absolute; + top: -41px; right: 15px; z-index: 999; } diff --git a/src/views/measure/source/components/all.vue b/src/views/measure/source/components/all.vue deleted file mode 100644 index d124307..0000000 --- a/src/views/measure/source/components/all.vue +++ /dev/null @@ -1,17 +0,0 @@ - - - - diff --git a/src/api/measure/source.ts b/src/api/measure/source.ts new file mode 100644 index 0000000..1b8bf27 --- /dev/null +++ b/src/api/measure/source.ts @@ -0,0 +1,84 @@ +/** + * 溯源供方请求接口 + */ +import request from '../index' +const prefix = '/meter' + +// 列表查询 +export function getSoucreList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/supplier/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function getSoucreListDelete(data: object) { + return request({ + url: `${prefix}/supplier/delete`, + method: 'post', + data, + }) +} + +// 查看详情 +export function getSoucreListDetail(data: object) { + return request({ + url: `${prefix}/supplier/detail`, + method: 'post', + data, + }) +} + +// 省级联动 +export function getSoucreListlevelType(pid: string) { + return request({ + url: `/sys/area/list?pid=${pid}`, + method: 'get', + }) +} + +// 提交数据 +export function sourceSubmit(data: object) { + return request({ + url: '/meter/supplier/submit', + method: 'post', + data, + }) +} +// 保存数据 +export function sourceSave(data: object) { + return request({ + url: `${prefix}/supplier/save`, + method: 'post', + data, + }) +} +// 更新数据 +export function getSoucreLisUpdate(data: object) { + return request({ + url: `${prefix}/supplier/update`, + method: 'post', + data, + }) +} + +// 导出详情 +export function getSoucreLisListExport(data: object) { + return request({ + url: `${prefix}/supplier/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 溯源供方审批接口 +export function getapprovalListPage(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/supplier/approval/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} diff --git a/src/api/system/source.ts b/src/api/system/source.ts deleted file mode 100644 index 93f5f12..0000000 --- a/src/api/system/source.ts +++ /dev/null @@ -1,76 +0,0 @@ -/** - * 溯源供方请求接口 - */ -import request from '../index' -const prefix = '/meter' - -// 列表查询 -export function getSoucreList(data: object) { - return request({ - url: `${prefix}/supplier/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 数据删除 -export function getSoucreListDelete(data: object) { - return request({ - url: `${prefix}/supplier/delete`, - method: 'post', - data, - }) -} - -// 查看详情 -export function getSoucreListDetail(data: object) { - return request({ - url: `${prefix}/supplier/detail`, - method: 'post', - data, - }) -} - -// 省级联动 -export function getSoucreListlevelType(pid: string) { - return request({ - url: `/sys/area/list?pid=${pid}`, - method: 'get', - }) -} - -// 新增数据 -export function getSoucreListAdd(data: object) { - return request({ - url: `${prefix}/supplier/add`, - method: 'post', - data, - }) -} -// 更新数据 -export function getSoucreLisUpdate(data: object) { - return request({ - url: `${prefix}/supplier/update`, - method: 'post', - data, - }) -} - -// 导出详情 -export function getSoucreLisListExport(data: object) { - return request({ - url: `${prefix}/supplier/listExport`, - method: 'post', - responseType: 'blob', - data, - }) -} - -// 溯源供方审批接口 -export function getapprovalListPage(data: object) { - return request({ - url: `${prefix}/supplier/approval/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} diff --git a/src/components.d.ts b/src/components.d.ts index 280906e..d419887 100644 --- a/src/components.d.ts +++ b/src/components.d.ts @@ -55,7 +55,6 @@ SelectEmployeesDialog: typeof import('./components/dialog/selectEmployeesDialog.vue')['default'] SelectResult: typeof import('./components/workFlow/selectResult.vue')['default'] SelectRoleDialog: typeof import('./components/dialog/selectRoleDialog.vue')['default'] - SelectTree: typeof import('./components/SelectTree/index.vue')['default'] SvgIcon: typeof import('./components/SvgIcon/index.vue')['default'] SystemInfo: typeof import('./components/SystemInfo/index.vue')['default'] TableContainer: typeof import('./components/TableContainer/index.vue')['default'] diff --git a/src/router/modules/measure.ts b/src/router/modules/measure.ts index f114ca2..73a7470 100644 --- a/src/router/modules/measure.ts +++ b/src/router/modules/measure.ts @@ -423,7 +423,7 @@ { path: 'approve/:type/:id?', name: 'ListpageSourceAdd', - component: () => import('@/views/measure/source/components/listPageAdd.vue'), + component: () => import('@/views/measure/source/components/sourceApprovalDetail.vue'), meta: { title: '溯源供方审批', icon: 'ep:key', diff --git a/src/store/modules/dict.ts b/src/store/modules/dict.ts index 7de3b8b..0719c75 100644 --- a/src/store/modules/dict.ts +++ b/src/store/modules/dict.ts @@ -6,6 +6,15 @@ state: () => ({ allDeptList: [] as DeptTreeNode[], // 所有部门列表 companyList: [] as DeptTreeNode[], // 公司列表 + approvalStatusList: { + 全部: '0', + 草稿箱: '1', + 待审批: '2', + 审批中: '3', + 已通过: '4', + 未通过: '5', + 已取消: '6', + }, // 审批状态 }), getters: { getAllDeptList: (state) => { @@ -14,6 +23,9 @@ getCompanyList: (state) => { return state.companyList }, + getApprovalStatus: (state) => { + return state.approvalStatusList + }, }, actions: { setAllDeptList(list: DeptTreeNode[]) { diff --git a/src/utils/scheduleDict.ts b/src/utils/scheduleDict.ts index 21d3721..9db0c6b 100644 --- a/src/utils/scheduleDict.ts +++ b/src/utils/scheduleDict.ts @@ -2,19 +2,19 @@ * 流程字典, 流程代号:流程id */ export enum SCHEDULE { - FILE_APPROVAL = '1', // 文件审批, - TRAIN_APPROVAL = '2', // 培训计划审批 - SUPPLIER_APPROVAL = '3', // 溯源供方审批 - STANDARD_CHANGE_APPROVAL = '4', // 标准装置更换申请 - STANDARD_PAUSE_APPROVAL = '5', // 标准装置暂停申请 - STANDARD_REVERT_APPROVAL = '6', // 标准装置撤销申请 - STANDARD_RESUME_APPROVAL = '7', // 标准装置恢复申请 - STANDARD_CHECK_APPROVAL = '8', // 标准装置复查申请 - DEVICE_UNUSED_APPROVAL = '9', // 设备闲置申请 - DEVICE_SEALED_APPROVAL = '10', // 设备封存申请 - DEVICE_UNSEALED_APPROVAL = '11', // 设备启封申请 - DEVICE_SCRAPPED_ROVAL = '12', // 设备报废申请 - DEVICE_HANDLE_APPROVAL = '13', // 设备处置申请 - DEVICE_CONSUMING_APPROVAL = '14', // 设备领用申请 - DEVICE_BORROW_APPROVAL = '15', // 设备借用申请 + FILE_APPROVAL = 'jlglwjsp', // 文件审批, + TRAIN_APPROVAL = 'jlglpxjhsp', // 培训计划审批 + SUPPLIER_APPROVAL = 'jlglsygfsp', // 溯源供方审批 + STANDARD_CHANGE_APPROVAL = 'sbglbzzzghsq', // 标准装置更换申请 + STANDARD_PAUSE_APPROVAL = 'sbglbzzzghsq', // 标准装置暂停申请 + STANDARD_REVERT_APPROVAL = 'sbglbzzzghsq', // 标准装置撤销申请 + STANDARD_RESUME_APPROVAL = 'sbglbzzzghsq', // 标准装置恢复申请 + STANDARD_CHECK_APPROVAL = 'sbglbzzzfcsq', // 标准装置复查申请 + DEVICE_UNUSED_APPROVAL = 'sbglsbxzsq', // 设备闲置申请 + DEVICE_SEALED_APPROVAL = 'sbglsbfcsq', // 设备封存申请 + DEVICE_UNSEALED_APPROVAL = 'sbglsbqfsq', // 设备启封申请 + DEVICE_SCRAPPED_ROVAL = 'sbglsbbfsq', // 设备报废申请 + DEVICE_HANDLE_APPROVAL = 'sbglsbczsq', // 设备处置申请 + DEVICE_CONSUMING_APPROVAL = 'sbglsblysq', // 设备领用申请 + DEVICE_BORROW_APPROVAL = 'sbglsbjysq', // 设备借用申请 } diff --git a/src/views/measure/source/approve.vue b/src/views/measure/source/approve.vue index 6227626..9ac8eea 100644 --- a/src/views/measure/source/approve.vue +++ b/src/views/measure/source/approve.vue @@ -1,52 +1,88 @@ - @@ -55,8 +91,8 @@ position: relative; .btns { - position: fixed; - top: 76px; + position: absolute; + top: -41px; right: 15px; z-index: 999; } diff --git a/src/views/measure/source/components/all.vue b/src/views/measure/source/components/all.vue deleted file mode 100644 index d124307..0000000 --- a/src/views/measure/source/components/all.vue +++ /dev/null @@ -1,17 +0,0 @@ - - - - diff --git a/src/views/measure/source/components/approvalPending.vue b/src/views/measure/source/components/approvalPending.vue deleted file mode 100644 index 8a7a8bc..0000000 --- a/src/views/measure/source/components/approvalPending.vue +++ /dev/null @@ -1,16 +0,0 @@ - - - - diff --git a/src/api/measure/source.ts b/src/api/measure/source.ts new file mode 100644 index 0000000..1b8bf27 --- /dev/null +++ b/src/api/measure/source.ts @@ -0,0 +1,84 @@ +/** + * 溯源供方请求接口 + */ +import request from '../index' +const prefix = '/meter' + +// 列表查询 +export function getSoucreList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/supplier/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function getSoucreListDelete(data: object) { + return request({ + url: `${prefix}/supplier/delete`, + method: 'post', + data, + }) +} + +// 查看详情 +export function getSoucreListDetail(data: object) { + return request({ + url: `${prefix}/supplier/detail`, + method: 'post', + data, + }) +} + +// 省级联动 +export function getSoucreListlevelType(pid: string) { + return request({ + url: `/sys/area/list?pid=${pid}`, + method: 'get', + }) +} + +// 提交数据 +export function sourceSubmit(data: object) { + return request({ + url: '/meter/supplier/submit', + method: 'post', + data, + }) +} +// 保存数据 +export function sourceSave(data: object) { + return request({ + url: `${prefix}/supplier/save`, + method: 'post', + data, + }) +} +// 更新数据 +export function getSoucreLisUpdate(data: object) { + return request({ + url: `${prefix}/supplier/update`, + method: 'post', + data, + }) +} + +// 导出详情 +export function getSoucreLisListExport(data: object) { + return request({ + url: `${prefix}/supplier/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 溯源供方审批接口 +export function getapprovalListPage(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/supplier/approval/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} diff --git a/src/api/system/source.ts b/src/api/system/source.ts deleted file mode 100644 index 93f5f12..0000000 --- a/src/api/system/source.ts +++ /dev/null @@ -1,76 +0,0 @@ -/** - * 溯源供方请求接口 - */ -import request from '../index' -const prefix = '/meter' - -// 列表查询 -export function getSoucreList(data: object) { - return request({ - url: `${prefix}/supplier/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 数据删除 -export function getSoucreListDelete(data: object) { - return request({ - url: `${prefix}/supplier/delete`, - method: 'post', - data, - }) -} - -// 查看详情 -export function getSoucreListDetail(data: object) { - return request({ - url: `${prefix}/supplier/detail`, - method: 'post', - data, - }) -} - -// 省级联动 -export function getSoucreListlevelType(pid: string) { - return request({ - url: `/sys/area/list?pid=${pid}`, - method: 'get', - }) -} - -// 新增数据 -export function getSoucreListAdd(data: object) { - return request({ - url: `${prefix}/supplier/add`, - method: 'post', - data, - }) -} -// 更新数据 -export function getSoucreLisUpdate(data: object) { - return request({ - url: `${prefix}/supplier/update`, - method: 'post', - data, - }) -} - -// 导出详情 -export function getSoucreLisListExport(data: object) { - return request({ - url: `${prefix}/supplier/listExport`, - method: 'post', - responseType: 'blob', - data, - }) -} - -// 溯源供方审批接口 -export function getapprovalListPage(data: object) { - return request({ - url: `${prefix}/supplier/approval/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} diff --git a/src/components.d.ts b/src/components.d.ts index 280906e..d419887 100644 --- a/src/components.d.ts +++ b/src/components.d.ts @@ -55,7 +55,6 @@ SelectEmployeesDialog: typeof import('./components/dialog/selectEmployeesDialog.vue')['default'] SelectResult: typeof import('./components/workFlow/selectResult.vue')['default'] SelectRoleDialog: typeof import('./components/dialog/selectRoleDialog.vue')['default'] - SelectTree: typeof import('./components/SelectTree/index.vue')['default'] SvgIcon: typeof import('./components/SvgIcon/index.vue')['default'] SystemInfo: typeof import('./components/SystemInfo/index.vue')['default'] TableContainer: typeof import('./components/TableContainer/index.vue')['default'] diff --git a/src/router/modules/measure.ts b/src/router/modules/measure.ts index f114ca2..73a7470 100644 --- a/src/router/modules/measure.ts +++ b/src/router/modules/measure.ts @@ -423,7 +423,7 @@ { path: 'approve/:type/:id?', name: 'ListpageSourceAdd', - component: () => import('@/views/measure/source/components/listPageAdd.vue'), + component: () => import('@/views/measure/source/components/sourceApprovalDetail.vue'), meta: { title: '溯源供方审批', icon: 'ep:key', diff --git a/src/store/modules/dict.ts b/src/store/modules/dict.ts index 7de3b8b..0719c75 100644 --- a/src/store/modules/dict.ts +++ b/src/store/modules/dict.ts @@ -6,6 +6,15 @@ state: () => ({ allDeptList: [] as DeptTreeNode[], // 所有部门列表 companyList: [] as DeptTreeNode[], // 公司列表 + approvalStatusList: { + 全部: '0', + 草稿箱: '1', + 待审批: '2', + 审批中: '3', + 已通过: '4', + 未通过: '5', + 已取消: '6', + }, // 审批状态 }), getters: { getAllDeptList: (state) => { @@ -14,6 +23,9 @@ getCompanyList: (state) => { return state.companyList }, + getApprovalStatus: (state) => { + return state.approvalStatusList + }, }, actions: { setAllDeptList(list: DeptTreeNode[]) { diff --git a/src/utils/scheduleDict.ts b/src/utils/scheduleDict.ts index 21d3721..9db0c6b 100644 --- a/src/utils/scheduleDict.ts +++ b/src/utils/scheduleDict.ts @@ -2,19 +2,19 @@ * 流程字典, 流程代号:流程id */ export enum SCHEDULE { - FILE_APPROVAL = '1', // 文件审批, - TRAIN_APPROVAL = '2', // 培训计划审批 - SUPPLIER_APPROVAL = '3', // 溯源供方审批 - STANDARD_CHANGE_APPROVAL = '4', // 标准装置更换申请 - STANDARD_PAUSE_APPROVAL = '5', // 标准装置暂停申请 - STANDARD_REVERT_APPROVAL = '6', // 标准装置撤销申请 - STANDARD_RESUME_APPROVAL = '7', // 标准装置恢复申请 - STANDARD_CHECK_APPROVAL = '8', // 标准装置复查申请 - DEVICE_UNUSED_APPROVAL = '9', // 设备闲置申请 - DEVICE_SEALED_APPROVAL = '10', // 设备封存申请 - DEVICE_UNSEALED_APPROVAL = '11', // 设备启封申请 - DEVICE_SCRAPPED_ROVAL = '12', // 设备报废申请 - DEVICE_HANDLE_APPROVAL = '13', // 设备处置申请 - DEVICE_CONSUMING_APPROVAL = '14', // 设备领用申请 - DEVICE_BORROW_APPROVAL = '15', // 设备借用申请 + FILE_APPROVAL = 'jlglwjsp', // 文件审批, + TRAIN_APPROVAL = 'jlglpxjhsp', // 培训计划审批 + SUPPLIER_APPROVAL = 'jlglsygfsp', // 溯源供方审批 + STANDARD_CHANGE_APPROVAL = 'sbglbzzzghsq', // 标准装置更换申请 + STANDARD_PAUSE_APPROVAL = 'sbglbzzzghsq', // 标准装置暂停申请 + STANDARD_REVERT_APPROVAL = 'sbglbzzzghsq', // 标准装置撤销申请 + STANDARD_RESUME_APPROVAL = 'sbglbzzzghsq', // 标准装置恢复申请 + STANDARD_CHECK_APPROVAL = 'sbglbzzzfcsq', // 标准装置复查申请 + DEVICE_UNUSED_APPROVAL = 'sbglsbxzsq', // 设备闲置申请 + DEVICE_SEALED_APPROVAL = 'sbglsbfcsq', // 设备封存申请 + DEVICE_UNSEALED_APPROVAL = 'sbglsbqfsq', // 设备启封申请 + DEVICE_SCRAPPED_ROVAL = 'sbglsbbfsq', // 设备报废申请 + DEVICE_HANDLE_APPROVAL = 'sbglsbczsq', // 设备处置申请 + DEVICE_CONSUMING_APPROVAL = 'sbglsblysq', // 设备领用申请 + DEVICE_BORROW_APPROVAL = 'sbglsbjysq', // 设备借用申请 } diff --git a/src/views/measure/source/approve.vue b/src/views/measure/source/approve.vue index 6227626..9ac8eea 100644 --- a/src/views/measure/source/approve.vue +++ b/src/views/measure/source/approve.vue @@ -1,52 +1,88 @@ - @@ -55,8 +91,8 @@ position: relative; .btns { - position: fixed; - top: 76px; + position: absolute; + top: -41px; right: 15px; z-index: 999; } diff --git a/src/views/measure/source/components/all.vue b/src/views/measure/source/components/all.vue deleted file mode 100644 index d124307..0000000 --- a/src/views/measure/source/components/all.vue +++ /dev/null @@ -1,17 +0,0 @@ - - - - diff --git a/src/views/measure/source/components/approvalPending.vue b/src/views/measure/source/components/approvalPending.vue deleted file mode 100644 index 8a7a8bc..0000000 --- a/src/views/measure/source/components/approvalPending.vue +++ /dev/null @@ -1,16 +0,0 @@ - - - - diff --git a/src/views/measure/source/components/canceled.vue b/src/views/measure/source/components/canceled.vue deleted file mode 100644 index 3b9657c..0000000 --- a/src/views/measure/source/components/canceled.vue +++ /dev/null @@ -1,15 +0,0 @@ - - - - diff --git a/src/api/measure/source.ts b/src/api/measure/source.ts new file mode 100644 index 0000000..1b8bf27 --- /dev/null +++ b/src/api/measure/source.ts @@ -0,0 +1,84 @@ +/** + * 溯源供方请求接口 + */ +import request from '../index' +const prefix = '/meter' + +// 列表查询 +export function getSoucreList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/supplier/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function getSoucreListDelete(data: object) { + return request({ + url: `${prefix}/supplier/delete`, + method: 'post', + data, + }) +} + +// 查看详情 +export function getSoucreListDetail(data: object) { + return request({ + url: `${prefix}/supplier/detail`, + method: 'post', + data, + }) +} + +// 省级联动 +export function getSoucreListlevelType(pid: string) { + return request({ + url: `/sys/area/list?pid=${pid}`, + method: 'get', + }) +} + +// 提交数据 +export function sourceSubmit(data: object) { + return request({ + url: '/meter/supplier/submit', + method: 'post', + data, + }) +} +// 保存数据 +export function sourceSave(data: object) { + return request({ + url: `${prefix}/supplier/save`, + method: 'post', + data, + }) +} +// 更新数据 +export function getSoucreLisUpdate(data: object) { + return request({ + url: `${prefix}/supplier/update`, + method: 'post', + data, + }) +} + +// 导出详情 +export function getSoucreLisListExport(data: object) { + return request({ + url: `${prefix}/supplier/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 溯源供方审批接口 +export function getapprovalListPage(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/supplier/approval/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} diff --git a/src/api/system/source.ts b/src/api/system/source.ts deleted file mode 100644 index 93f5f12..0000000 --- a/src/api/system/source.ts +++ /dev/null @@ -1,76 +0,0 @@ -/** - * 溯源供方请求接口 - */ -import request from '../index' -const prefix = '/meter' - -// 列表查询 -export function getSoucreList(data: object) { - return request({ - url: `${prefix}/supplier/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 数据删除 -export function getSoucreListDelete(data: object) { - return request({ - url: `${prefix}/supplier/delete`, - method: 'post', - data, - }) -} - -// 查看详情 -export function getSoucreListDetail(data: object) { - return request({ - url: `${prefix}/supplier/detail`, - method: 'post', - data, - }) -} - -// 省级联动 -export function getSoucreListlevelType(pid: string) { - return request({ - url: `/sys/area/list?pid=${pid}`, - method: 'get', - }) -} - -// 新增数据 -export function getSoucreListAdd(data: object) { - return request({ - url: `${prefix}/supplier/add`, - method: 'post', - data, - }) -} -// 更新数据 -export function getSoucreLisUpdate(data: object) { - return request({ - url: `${prefix}/supplier/update`, - method: 'post', - data, - }) -} - -// 导出详情 -export function getSoucreLisListExport(data: object) { - return request({ - url: `${prefix}/supplier/listExport`, - method: 'post', - responseType: 'blob', - data, - }) -} - -// 溯源供方审批接口 -export function getapprovalListPage(data: object) { - return request({ - url: `${prefix}/supplier/approval/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} diff --git a/src/components.d.ts b/src/components.d.ts index 280906e..d419887 100644 --- a/src/components.d.ts +++ b/src/components.d.ts @@ -55,7 +55,6 @@ SelectEmployeesDialog: typeof import('./components/dialog/selectEmployeesDialog.vue')['default'] SelectResult: typeof import('./components/workFlow/selectResult.vue')['default'] SelectRoleDialog: typeof import('./components/dialog/selectRoleDialog.vue')['default'] - SelectTree: typeof import('./components/SelectTree/index.vue')['default'] SvgIcon: typeof import('./components/SvgIcon/index.vue')['default'] SystemInfo: typeof import('./components/SystemInfo/index.vue')['default'] TableContainer: typeof import('./components/TableContainer/index.vue')['default'] diff --git a/src/router/modules/measure.ts b/src/router/modules/measure.ts index f114ca2..73a7470 100644 --- a/src/router/modules/measure.ts +++ b/src/router/modules/measure.ts @@ -423,7 +423,7 @@ { path: 'approve/:type/:id?', name: 'ListpageSourceAdd', - component: () => import('@/views/measure/source/components/listPageAdd.vue'), + component: () => import('@/views/measure/source/components/sourceApprovalDetail.vue'), meta: { title: '溯源供方审批', icon: 'ep:key', diff --git a/src/store/modules/dict.ts b/src/store/modules/dict.ts index 7de3b8b..0719c75 100644 --- a/src/store/modules/dict.ts +++ b/src/store/modules/dict.ts @@ -6,6 +6,15 @@ state: () => ({ allDeptList: [] as DeptTreeNode[], // 所有部门列表 companyList: [] as DeptTreeNode[], // 公司列表 + approvalStatusList: { + 全部: '0', + 草稿箱: '1', + 待审批: '2', + 审批中: '3', + 已通过: '4', + 未通过: '5', + 已取消: '6', + }, // 审批状态 }), getters: { getAllDeptList: (state) => { @@ -14,6 +23,9 @@ getCompanyList: (state) => { return state.companyList }, + getApprovalStatus: (state) => { + return state.approvalStatusList + }, }, actions: { setAllDeptList(list: DeptTreeNode[]) { diff --git a/src/utils/scheduleDict.ts b/src/utils/scheduleDict.ts index 21d3721..9db0c6b 100644 --- a/src/utils/scheduleDict.ts +++ b/src/utils/scheduleDict.ts @@ -2,19 +2,19 @@ * 流程字典, 流程代号:流程id */ export enum SCHEDULE { - FILE_APPROVAL = '1', // 文件审批, - TRAIN_APPROVAL = '2', // 培训计划审批 - SUPPLIER_APPROVAL = '3', // 溯源供方审批 - STANDARD_CHANGE_APPROVAL = '4', // 标准装置更换申请 - STANDARD_PAUSE_APPROVAL = '5', // 标准装置暂停申请 - STANDARD_REVERT_APPROVAL = '6', // 标准装置撤销申请 - STANDARD_RESUME_APPROVAL = '7', // 标准装置恢复申请 - STANDARD_CHECK_APPROVAL = '8', // 标准装置复查申请 - DEVICE_UNUSED_APPROVAL = '9', // 设备闲置申请 - DEVICE_SEALED_APPROVAL = '10', // 设备封存申请 - DEVICE_UNSEALED_APPROVAL = '11', // 设备启封申请 - DEVICE_SCRAPPED_ROVAL = '12', // 设备报废申请 - DEVICE_HANDLE_APPROVAL = '13', // 设备处置申请 - DEVICE_CONSUMING_APPROVAL = '14', // 设备领用申请 - DEVICE_BORROW_APPROVAL = '15', // 设备借用申请 + FILE_APPROVAL = 'jlglwjsp', // 文件审批, + TRAIN_APPROVAL = 'jlglpxjhsp', // 培训计划审批 + SUPPLIER_APPROVAL = 'jlglsygfsp', // 溯源供方审批 + STANDARD_CHANGE_APPROVAL = 'sbglbzzzghsq', // 标准装置更换申请 + STANDARD_PAUSE_APPROVAL = 'sbglbzzzghsq', // 标准装置暂停申请 + STANDARD_REVERT_APPROVAL = 'sbglbzzzghsq', // 标准装置撤销申请 + STANDARD_RESUME_APPROVAL = 'sbglbzzzghsq', // 标准装置恢复申请 + STANDARD_CHECK_APPROVAL = 'sbglbzzzfcsq', // 标准装置复查申请 + DEVICE_UNUSED_APPROVAL = 'sbglsbxzsq', // 设备闲置申请 + DEVICE_SEALED_APPROVAL = 'sbglsbfcsq', // 设备封存申请 + DEVICE_UNSEALED_APPROVAL = 'sbglsbqfsq', // 设备启封申请 + DEVICE_SCRAPPED_ROVAL = 'sbglsbbfsq', // 设备报废申请 + DEVICE_HANDLE_APPROVAL = 'sbglsbczsq', // 设备处置申请 + DEVICE_CONSUMING_APPROVAL = 'sbglsblysq', // 设备领用申请 + DEVICE_BORROW_APPROVAL = 'sbglsbjysq', // 设备借用申请 } diff --git a/src/views/measure/source/approve.vue b/src/views/measure/source/approve.vue index 6227626..9ac8eea 100644 --- a/src/views/measure/source/approve.vue +++ b/src/views/measure/source/approve.vue @@ -1,52 +1,88 @@ - @@ -55,8 +91,8 @@ position: relative; .btns { - position: fixed; - top: 76px; + position: absolute; + top: -41px; right: 15px; z-index: 999; } diff --git a/src/views/measure/source/components/all.vue b/src/views/measure/source/components/all.vue deleted file mode 100644 index d124307..0000000 --- a/src/views/measure/source/components/all.vue +++ /dev/null @@ -1,17 +0,0 @@ - - - - diff --git a/src/views/measure/source/components/approvalPending.vue b/src/views/measure/source/components/approvalPending.vue deleted file mode 100644 index 8a7a8bc..0000000 --- a/src/views/measure/source/components/approvalPending.vue +++ /dev/null @@ -1,16 +0,0 @@ - - - - diff --git a/src/views/measure/source/components/canceled.vue b/src/views/measure/source/components/canceled.vue deleted file mode 100644 index 3b9657c..0000000 --- a/src/views/measure/source/components/canceled.vue +++ /dev/null @@ -1,15 +0,0 @@ - - - - diff --git a/src/views/measure/source/components/draftBox.vue b/src/views/measure/source/components/draftBox.vue deleted file mode 100644 index 43d7b75..0000000 --- a/src/views/measure/source/components/draftBox.vue +++ /dev/null @@ -1,15 +0,0 @@ - - - - diff --git a/src/api/measure/source.ts b/src/api/measure/source.ts new file mode 100644 index 0000000..1b8bf27 --- /dev/null +++ b/src/api/measure/source.ts @@ -0,0 +1,84 @@ +/** + * 溯源供方请求接口 + */ +import request from '../index' +const prefix = '/meter' + +// 列表查询 +export function getSoucreList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/supplier/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function getSoucreListDelete(data: object) { + return request({ + url: `${prefix}/supplier/delete`, + method: 'post', + data, + }) +} + +// 查看详情 +export function getSoucreListDetail(data: object) { + return request({ + url: `${prefix}/supplier/detail`, + method: 'post', + data, + }) +} + +// 省级联动 +export function getSoucreListlevelType(pid: string) { + return request({ + url: `/sys/area/list?pid=${pid}`, + method: 'get', + }) +} + +// 提交数据 +export function sourceSubmit(data: object) { + return request({ + url: '/meter/supplier/submit', + method: 'post', + data, + }) +} +// 保存数据 +export function sourceSave(data: object) { + return request({ + url: `${prefix}/supplier/save`, + method: 'post', + data, + }) +} +// 更新数据 +export function getSoucreLisUpdate(data: object) { + return request({ + url: `${prefix}/supplier/update`, + method: 'post', + data, + }) +} + +// 导出详情 +export function getSoucreLisListExport(data: object) { + return request({ + url: `${prefix}/supplier/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 溯源供方审批接口 +export function getapprovalListPage(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/supplier/approval/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} diff --git a/src/api/system/source.ts b/src/api/system/source.ts deleted file mode 100644 index 93f5f12..0000000 --- a/src/api/system/source.ts +++ /dev/null @@ -1,76 +0,0 @@ -/** - * 溯源供方请求接口 - */ -import request from '../index' -const prefix = '/meter' - -// 列表查询 -export function getSoucreList(data: object) { - return request({ - url: `${prefix}/supplier/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 数据删除 -export function getSoucreListDelete(data: object) { - return request({ - url: `${prefix}/supplier/delete`, - method: 'post', - data, - }) -} - -// 查看详情 -export function getSoucreListDetail(data: object) { - return request({ - url: `${prefix}/supplier/detail`, - method: 'post', - data, - }) -} - -// 省级联动 -export function getSoucreListlevelType(pid: string) { - return request({ - url: `/sys/area/list?pid=${pid}`, - method: 'get', - }) -} - -// 新增数据 -export function getSoucreListAdd(data: object) { - return request({ - url: `${prefix}/supplier/add`, - method: 'post', - data, - }) -} -// 更新数据 -export function getSoucreLisUpdate(data: object) { - return request({ - url: `${prefix}/supplier/update`, - method: 'post', - data, - }) -} - -// 导出详情 -export function getSoucreLisListExport(data: object) { - return request({ - url: `${prefix}/supplier/listExport`, - method: 'post', - responseType: 'blob', - data, - }) -} - -// 溯源供方审批接口 -export function getapprovalListPage(data: object) { - return request({ - url: `${prefix}/supplier/approval/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} diff --git a/src/components.d.ts b/src/components.d.ts index 280906e..d419887 100644 --- a/src/components.d.ts +++ b/src/components.d.ts @@ -55,7 +55,6 @@ SelectEmployeesDialog: typeof import('./components/dialog/selectEmployeesDialog.vue')['default'] SelectResult: typeof import('./components/workFlow/selectResult.vue')['default'] SelectRoleDialog: typeof import('./components/dialog/selectRoleDialog.vue')['default'] - SelectTree: typeof import('./components/SelectTree/index.vue')['default'] SvgIcon: typeof import('./components/SvgIcon/index.vue')['default'] SystemInfo: typeof import('./components/SystemInfo/index.vue')['default'] TableContainer: typeof import('./components/TableContainer/index.vue')['default'] diff --git a/src/router/modules/measure.ts b/src/router/modules/measure.ts index f114ca2..73a7470 100644 --- a/src/router/modules/measure.ts +++ b/src/router/modules/measure.ts @@ -423,7 +423,7 @@ { path: 'approve/:type/:id?', name: 'ListpageSourceAdd', - component: () => import('@/views/measure/source/components/listPageAdd.vue'), + component: () => import('@/views/measure/source/components/sourceApprovalDetail.vue'), meta: { title: '溯源供方审批', icon: 'ep:key', diff --git a/src/store/modules/dict.ts b/src/store/modules/dict.ts index 7de3b8b..0719c75 100644 --- a/src/store/modules/dict.ts +++ b/src/store/modules/dict.ts @@ -6,6 +6,15 @@ state: () => ({ allDeptList: [] as DeptTreeNode[], // 所有部门列表 companyList: [] as DeptTreeNode[], // 公司列表 + approvalStatusList: { + 全部: '0', + 草稿箱: '1', + 待审批: '2', + 审批中: '3', + 已通过: '4', + 未通过: '5', + 已取消: '6', + }, // 审批状态 }), getters: { getAllDeptList: (state) => { @@ -14,6 +23,9 @@ getCompanyList: (state) => { return state.companyList }, + getApprovalStatus: (state) => { + return state.approvalStatusList + }, }, actions: { setAllDeptList(list: DeptTreeNode[]) { diff --git a/src/utils/scheduleDict.ts b/src/utils/scheduleDict.ts index 21d3721..9db0c6b 100644 --- a/src/utils/scheduleDict.ts +++ b/src/utils/scheduleDict.ts @@ -2,19 +2,19 @@ * 流程字典, 流程代号:流程id */ export enum SCHEDULE { - FILE_APPROVAL = '1', // 文件审批, - TRAIN_APPROVAL = '2', // 培训计划审批 - SUPPLIER_APPROVAL = '3', // 溯源供方审批 - STANDARD_CHANGE_APPROVAL = '4', // 标准装置更换申请 - STANDARD_PAUSE_APPROVAL = '5', // 标准装置暂停申请 - STANDARD_REVERT_APPROVAL = '6', // 标准装置撤销申请 - STANDARD_RESUME_APPROVAL = '7', // 标准装置恢复申请 - STANDARD_CHECK_APPROVAL = '8', // 标准装置复查申请 - DEVICE_UNUSED_APPROVAL = '9', // 设备闲置申请 - DEVICE_SEALED_APPROVAL = '10', // 设备封存申请 - DEVICE_UNSEALED_APPROVAL = '11', // 设备启封申请 - DEVICE_SCRAPPED_ROVAL = '12', // 设备报废申请 - DEVICE_HANDLE_APPROVAL = '13', // 设备处置申请 - DEVICE_CONSUMING_APPROVAL = '14', // 设备领用申请 - DEVICE_BORROW_APPROVAL = '15', // 设备借用申请 + FILE_APPROVAL = 'jlglwjsp', // 文件审批, + TRAIN_APPROVAL = 'jlglpxjhsp', // 培训计划审批 + SUPPLIER_APPROVAL = 'jlglsygfsp', // 溯源供方审批 + STANDARD_CHANGE_APPROVAL = 'sbglbzzzghsq', // 标准装置更换申请 + STANDARD_PAUSE_APPROVAL = 'sbglbzzzghsq', // 标准装置暂停申请 + STANDARD_REVERT_APPROVAL = 'sbglbzzzghsq', // 标准装置撤销申请 + STANDARD_RESUME_APPROVAL = 'sbglbzzzghsq', // 标准装置恢复申请 + STANDARD_CHECK_APPROVAL = 'sbglbzzzfcsq', // 标准装置复查申请 + DEVICE_UNUSED_APPROVAL = 'sbglsbxzsq', // 设备闲置申请 + DEVICE_SEALED_APPROVAL = 'sbglsbfcsq', // 设备封存申请 + DEVICE_UNSEALED_APPROVAL = 'sbglsbqfsq', // 设备启封申请 + DEVICE_SCRAPPED_ROVAL = 'sbglsbbfsq', // 设备报废申请 + DEVICE_HANDLE_APPROVAL = 'sbglsbczsq', // 设备处置申请 + DEVICE_CONSUMING_APPROVAL = 'sbglsblysq', // 设备领用申请 + DEVICE_BORROW_APPROVAL = 'sbglsbjysq', // 设备借用申请 } diff --git a/src/views/measure/source/approve.vue b/src/views/measure/source/approve.vue index 6227626..9ac8eea 100644 --- a/src/views/measure/source/approve.vue +++ b/src/views/measure/source/approve.vue @@ -1,52 +1,88 @@ - @@ -55,8 +91,8 @@ position: relative; .btns { - position: fixed; - top: 76px; + position: absolute; + top: -41px; right: 15px; z-index: 999; } diff --git a/src/views/measure/source/components/all.vue b/src/views/measure/source/components/all.vue deleted file mode 100644 index d124307..0000000 --- a/src/views/measure/source/components/all.vue +++ /dev/null @@ -1,17 +0,0 @@ - - - - diff --git a/src/views/measure/source/components/approvalPending.vue b/src/views/measure/source/components/approvalPending.vue deleted file mode 100644 index 8a7a8bc..0000000 --- a/src/views/measure/source/components/approvalPending.vue +++ /dev/null @@ -1,16 +0,0 @@ - - - - diff --git a/src/views/measure/source/components/canceled.vue b/src/views/measure/source/components/canceled.vue deleted file mode 100644 index 3b9657c..0000000 --- a/src/views/measure/source/components/canceled.vue +++ /dev/null @@ -1,15 +0,0 @@ - - - - diff --git a/src/views/measure/source/components/draftBox.vue b/src/views/measure/source/components/draftBox.vue deleted file mode 100644 index 43d7b75..0000000 --- a/src/views/measure/source/components/draftBox.vue +++ /dev/null @@ -1,15 +0,0 @@ - - - - diff --git a/src/views/measure/source/components/examineAndApprove.vue b/src/views/measure/source/components/examineAndApprove.vue deleted file mode 100644 index c13f95a..0000000 --- a/src/views/measure/source/components/examineAndApprove.vue +++ /dev/null @@ -1,17 +0,0 @@ - - - - diff --git a/src/api/measure/source.ts b/src/api/measure/source.ts new file mode 100644 index 0000000..1b8bf27 --- /dev/null +++ b/src/api/measure/source.ts @@ -0,0 +1,84 @@ +/** + * 溯源供方请求接口 + */ +import request from '../index' +const prefix = '/meter' + +// 列表查询 +export function getSoucreList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/supplier/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function getSoucreListDelete(data: object) { + return request({ + url: `${prefix}/supplier/delete`, + method: 'post', + data, + }) +} + +// 查看详情 +export function getSoucreListDetail(data: object) { + return request({ + url: `${prefix}/supplier/detail`, + method: 'post', + data, + }) +} + +// 省级联动 +export function getSoucreListlevelType(pid: string) { + return request({ + url: `/sys/area/list?pid=${pid}`, + method: 'get', + }) +} + +// 提交数据 +export function sourceSubmit(data: object) { + return request({ + url: '/meter/supplier/submit', + method: 'post', + data, + }) +} +// 保存数据 +export function sourceSave(data: object) { + return request({ + url: `${prefix}/supplier/save`, + method: 'post', + data, + }) +} +// 更新数据 +export function getSoucreLisUpdate(data: object) { + return request({ + url: `${prefix}/supplier/update`, + method: 'post', + data, + }) +} + +// 导出详情 +export function getSoucreLisListExport(data: object) { + return request({ + url: `${prefix}/supplier/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 溯源供方审批接口 +export function getapprovalListPage(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/supplier/approval/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} diff --git a/src/api/system/source.ts b/src/api/system/source.ts deleted file mode 100644 index 93f5f12..0000000 --- a/src/api/system/source.ts +++ /dev/null @@ -1,76 +0,0 @@ -/** - * 溯源供方请求接口 - */ -import request from '../index' -const prefix = '/meter' - -// 列表查询 -export function getSoucreList(data: object) { - return request({ - url: `${prefix}/supplier/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 数据删除 -export function getSoucreListDelete(data: object) { - return request({ - url: `${prefix}/supplier/delete`, - method: 'post', - data, - }) -} - -// 查看详情 -export function getSoucreListDetail(data: object) { - return request({ - url: `${prefix}/supplier/detail`, - method: 'post', - data, - }) -} - -// 省级联动 -export function getSoucreListlevelType(pid: string) { - return request({ - url: `/sys/area/list?pid=${pid}`, - method: 'get', - }) -} - -// 新增数据 -export function getSoucreListAdd(data: object) { - return request({ - url: `${prefix}/supplier/add`, - method: 'post', - data, - }) -} -// 更新数据 -export function getSoucreLisUpdate(data: object) { - return request({ - url: `${prefix}/supplier/update`, - method: 'post', - data, - }) -} - -// 导出详情 -export function getSoucreLisListExport(data: object) { - return request({ - url: `${prefix}/supplier/listExport`, - method: 'post', - responseType: 'blob', - data, - }) -} - -// 溯源供方审批接口 -export function getapprovalListPage(data: object) { - return request({ - url: `${prefix}/supplier/approval/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} diff --git a/src/components.d.ts b/src/components.d.ts index 280906e..d419887 100644 --- a/src/components.d.ts +++ b/src/components.d.ts @@ -55,7 +55,6 @@ SelectEmployeesDialog: typeof import('./components/dialog/selectEmployeesDialog.vue')['default'] SelectResult: typeof import('./components/workFlow/selectResult.vue')['default'] SelectRoleDialog: typeof import('./components/dialog/selectRoleDialog.vue')['default'] - SelectTree: typeof import('./components/SelectTree/index.vue')['default'] SvgIcon: typeof import('./components/SvgIcon/index.vue')['default'] SystemInfo: typeof import('./components/SystemInfo/index.vue')['default'] TableContainer: typeof import('./components/TableContainer/index.vue')['default'] diff --git a/src/router/modules/measure.ts b/src/router/modules/measure.ts index f114ca2..73a7470 100644 --- a/src/router/modules/measure.ts +++ b/src/router/modules/measure.ts @@ -423,7 +423,7 @@ { path: 'approve/:type/:id?', name: 'ListpageSourceAdd', - component: () => import('@/views/measure/source/components/listPageAdd.vue'), + component: () => import('@/views/measure/source/components/sourceApprovalDetail.vue'), meta: { title: '溯源供方审批', icon: 'ep:key', diff --git a/src/store/modules/dict.ts b/src/store/modules/dict.ts index 7de3b8b..0719c75 100644 --- a/src/store/modules/dict.ts +++ b/src/store/modules/dict.ts @@ -6,6 +6,15 @@ state: () => ({ allDeptList: [] as DeptTreeNode[], // 所有部门列表 companyList: [] as DeptTreeNode[], // 公司列表 + approvalStatusList: { + 全部: '0', + 草稿箱: '1', + 待审批: '2', + 审批中: '3', + 已通过: '4', + 未通过: '5', + 已取消: '6', + }, // 审批状态 }), getters: { getAllDeptList: (state) => { @@ -14,6 +23,9 @@ getCompanyList: (state) => { return state.companyList }, + getApprovalStatus: (state) => { + return state.approvalStatusList + }, }, actions: { setAllDeptList(list: DeptTreeNode[]) { diff --git a/src/utils/scheduleDict.ts b/src/utils/scheduleDict.ts index 21d3721..9db0c6b 100644 --- a/src/utils/scheduleDict.ts +++ b/src/utils/scheduleDict.ts @@ -2,19 +2,19 @@ * 流程字典, 流程代号:流程id */ export enum SCHEDULE { - FILE_APPROVAL = '1', // 文件审批, - TRAIN_APPROVAL = '2', // 培训计划审批 - SUPPLIER_APPROVAL = '3', // 溯源供方审批 - STANDARD_CHANGE_APPROVAL = '4', // 标准装置更换申请 - STANDARD_PAUSE_APPROVAL = '5', // 标准装置暂停申请 - STANDARD_REVERT_APPROVAL = '6', // 标准装置撤销申请 - STANDARD_RESUME_APPROVAL = '7', // 标准装置恢复申请 - STANDARD_CHECK_APPROVAL = '8', // 标准装置复查申请 - DEVICE_UNUSED_APPROVAL = '9', // 设备闲置申请 - DEVICE_SEALED_APPROVAL = '10', // 设备封存申请 - DEVICE_UNSEALED_APPROVAL = '11', // 设备启封申请 - DEVICE_SCRAPPED_ROVAL = '12', // 设备报废申请 - DEVICE_HANDLE_APPROVAL = '13', // 设备处置申请 - DEVICE_CONSUMING_APPROVAL = '14', // 设备领用申请 - DEVICE_BORROW_APPROVAL = '15', // 设备借用申请 + FILE_APPROVAL = 'jlglwjsp', // 文件审批, + TRAIN_APPROVAL = 'jlglpxjhsp', // 培训计划审批 + SUPPLIER_APPROVAL = 'jlglsygfsp', // 溯源供方审批 + STANDARD_CHANGE_APPROVAL = 'sbglbzzzghsq', // 标准装置更换申请 + STANDARD_PAUSE_APPROVAL = 'sbglbzzzghsq', // 标准装置暂停申请 + STANDARD_REVERT_APPROVAL = 'sbglbzzzghsq', // 标准装置撤销申请 + STANDARD_RESUME_APPROVAL = 'sbglbzzzghsq', // 标准装置恢复申请 + STANDARD_CHECK_APPROVAL = 'sbglbzzzfcsq', // 标准装置复查申请 + DEVICE_UNUSED_APPROVAL = 'sbglsbxzsq', // 设备闲置申请 + DEVICE_SEALED_APPROVAL = 'sbglsbfcsq', // 设备封存申请 + DEVICE_UNSEALED_APPROVAL = 'sbglsbqfsq', // 设备启封申请 + DEVICE_SCRAPPED_ROVAL = 'sbglsbbfsq', // 设备报废申请 + DEVICE_HANDLE_APPROVAL = 'sbglsbczsq', // 设备处置申请 + DEVICE_CONSUMING_APPROVAL = 'sbglsblysq', // 设备领用申请 + DEVICE_BORROW_APPROVAL = 'sbglsbjysq', // 设备借用申请 } diff --git a/src/views/measure/source/approve.vue b/src/views/measure/source/approve.vue index 6227626..9ac8eea 100644 --- a/src/views/measure/source/approve.vue +++ b/src/views/measure/source/approve.vue @@ -1,52 +1,88 @@ - @@ -55,8 +91,8 @@ position: relative; .btns { - position: fixed; - top: 76px; + position: absolute; + top: -41px; right: 15px; z-index: 999; } diff --git a/src/views/measure/source/components/all.vue b/src/views/measure/source/components/all.vue deleted file mode 100644 index d124307..0000000 --- a/src/views/measure/source/components/all.vue +++ /dev/null @@ -1,17 +0,0 @@ - - - - diff --git a/src/views/measure/source/components/approvalPending.vue b/src/views/measure/source/components/approvalPending.vue deleted file mode 100644 index 8a7a8bc..0000000 --- a/src/views/measure/source/components/approvalPending.vue +++ /dev/null @@ -1,16 +0,0 @@ - - - - diff --git a/src/views/measure/source/components/canceled.vue b/src/views/measure/source/components/canceled.vue deleted file mode 100644 index 3b9657c..0000000 --- a/src/views/measure/source/components/canceled.vue +++ /dev/null @@ -1,15 +0,0 @@ - - - - diff --git a/src/views/measure/source/components/draftBox.vue b/src/views/measure/source/components/draftBox.vue deleted file mode 100644 index 43d7b75..0000000 --- a/src/views/measure/source/components/draftBox.vue +++ /dev/null @@ -1,15 +0,0 @@ - - - - diff --git a/src/views/measure/source/components/examineAndApprove.vue b/src/views/measure/source/components/examineAndApprove.vue deleted file mode 100644 index c13f95a..0000000 --- a/src/views/measure/source/components/examineAndApprove.vue +++ /dev/null @@ -1,17 +0,0 @@ - - - - diff --git a/src/views/measure/source/components/listApproval.vue b/src/views/measure/source/components/listApproval.vue new file mode 100644 index 0000000..3880028 --- /dev/null +++ b/src/views/measure/source/components/listApproval.vue @@ -0,0 +1,332 @@ + + + + diff --git a/src/api/measure/source.ts b/src/api/measure/source.ts new file mode 100644 index 0000000..1b8bf27 --- /dev/null +++ b/src/api/measure/source.ts @@ -0,0 +1,84 @@ +/** + * 溯源供方请求接口 + */ +import request from '../index' +const prefix = '/meter' + +// 列表查询 +export function getSoucreList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/supplier/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function getSoucreListDelete(data: object) { + return request({ + url: `${prefix}/supplier/delete`, + method: 'post', + data, + }) +} + +// 查看详情 +export function getSoucreListDetail(data: object) { + return request({ + url: `${prefix}/supplier/detail`, + method: 'post', + data, + }) +} + +// 省级联动 +export function getSoucreListlevelType(pid: string) { + return request({ + url: `/sys/area/list?pid=${pid}`, + method: 'get', + }) +} + +// 提交数据 +export function sourceSubmit(data: object) { + return request({ + url: '/meter/supplier/submit', + method: 'post', + data, + }) +} +// 保存数据 +export function sourceSave(data: object) { + return request({ + url: `${prefix}/supplier/save`, + method: 'post', + data, + }) +} +// 更新数据 +export function getSoucreLisUpdate(data: object) { + return request({ + url: `${prefix}/supplier/update`, + method: 'post', + data, + }) +} + +// 导出详情 +export function getSoucreLisListExport(data: object) { + return request({ + url: `${prefix}/supplier/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 溯源供方审批接口 +export function getapprovalListPage(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/supplier/approval/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} diff --git a/src/api/system/source.ts b/src/api/system/source.ts deleted file mode 100644 index 93f5f12..0000000 --- a/src/api/system/source.ts +++ /dev/null @@ -1,76 +0,0 @@ -/** - * 溯源供方请求接口 - */ -import request from '../index' -const prefix = '/meter' - -// 列表查询 -export function getSoucreList(data: object) { - return request({ - url: `${prefix}/supplier/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 数据删除 -export function getSoucreListDelete(data: object) { - return request({ - url: `${prefix}/supplier/delete`, - method: 'post', - data, - }) -} - -// 查看详情 -export function getSoucreListDetail(data: object) { - return request({ - url: `${prefix}/supplier/detail`, - method: 'post', - data, - }) -} - -// 省级联动 -export function getSoucreListlevelType(pid: string) { - return request({ - url: `/sys/area/list?pid=${pid}`, - method: 'get', - }) -} - -// 新增数据 -export function getSoucreListAdd(data: object) { - return request({ - url: `${prefix}/supplier/add`, - method: 'post', - data, - }) -} -// 更新数据 -export function getSoucreLisUpdate(data: object) { - return request({ - url: `${prefix}/supplier/update`, - method: 'post', - data, - }) -} - -// 导出详情 -export function getSoucreLisListExport(data: object) { - return request({ - url: `${prefix}/supplier/listExport`, - method: 'post', - responseType: 'blob', - data, - }) -} - -// 溯源供方审批接口 -export function getapprovalListPage(data: object) { - return request({ - url: `${prefix}/supplier/approval/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} diff --git a/src/components.d.ts b/src/components.d.ts index 280906e..d419887 100644 --- a/src/components.d.ts +++ b/src/components.d.ts @@ -55,7 +55,6 @@ SelectEmployeesDialog: typeof import('./components/dialog/selectEmployeesDialog.vue')['default'] SelectResult: typeof import('./components/workFlow/selectResult.vue')['default'] SelectRoleDialog: typeof import('./components/dialog/selectRoleDialog.vue')['default'] - SelectTree: typeof import('./components/SelectTree/index.vue')['default'] SvgIcon: typeof import('./components/SvgIcon/index.vue')['default'] SystemInfo: typeof import('./components/SystemInfo/index.vue')['default'] TableContainer: typeof import('./components/TableContainer/index.vue')['default'] diff --git a/src/router/modules/measure.ts b/src/router/modules/measure.ts index f114ca2..73a7470 100644 --- a/src/router/modules/measure.ts +++ b/src/router/modules/measure.ts @@ -423,7 +423,7 @@ { path: 'approve/:type/:id?', name: 'ListpageSourceAdd', - component: () => import('@/views/measure/source/components/listPageAdd.vue'), + component: () => import('@/views/measure/source/components/sourceApprovalDetail.vue'), meta: { title: '溯源供方审批', icon: 'ep:key', diff --git a/src/store/modules/dict.ts b/src/store/modules/dict.ts index 7de3b8b..0719c75 100644 --- a/src/store/modules/dict.ts +++ b/src/store/modules/dict.ts @@ -6,6 +6,15 @@ state: () => ({ allDeptList: [] as DeptTreeNode[], // 所有部门列表 companyList: [] as DeptTreeNode[], // 公司列表 + approvalStatusList: { + 全部: '0', + 草稿箱: '1', + 待审批: '2', + 审批中: '3', + 已通过: '4', + 未通过: '5', + 已取消: '6', + }, // 审批状态 }), getters: { getAllDeptList: (state) => { @@ -14,6 +23,9 @@ getCompanyList: (state) => { return state.companyList }, + getApprovalStatus: (state) => { + return state.approvalStatusList + }, }, actions: { setAllDeptList(list: DeptTreeNode[]) { diff --git a/src/utils/scheduleDict.ts b/src/utils/scheduleDict.ts index 21d3721..9db0c6b 100644 --- a/src/utils/scheduleDict.ts +++ b/src/utils/scheduleDict.ts @@ -2,19 +2,19 @@ * 流程字典, 流程代号:流程id */ export enum SCHEDULE { - FILE_APPROVAL = '1', // 文件审批, - TRAIN_APPROVAL = '2', // 培训计划审批 - SUPPLIER_APPROVAL = '3', // 溯源供方审批 - STANDARD_CHANGE_APPROVAL = '4', // 标准装置更换申请 - STANDARD_PAUSE_APPROVAL = '5', // 标准装置暂停申请 - STANDARD_REVERT_APPROVAL = '6', // 标准装置撤销申请 - STANDARD_RESUME_APPROVAL = '7', // 标准装置恢复申请 - STANDARD_CHECK_APPROVAL = '8', // 标准装置复查申请 - DEVICE_UNUSED_APPROVAL = '9', // 设备闲置申请 - DEVICE_SEALED_APPROVAL = '10', // 设备封存申请 - DEVICE_UNSEALED_APPROVAL = '11', // 设备启封申请 - DEVICE_SCRAPPED_ROVAL = '12', // 设备报废申请 - DEVICE_HANDLE_APPROVAL = '13', // 设备处置申请 - DEVICE_CONSUMING_APPROVAL = '14', // 设备领用申请 - DEVICE_BORROW_APPROVAL = '15', // 设备借用申请 + FILE_APPROVAL = 'jlglwjsp', // 文件审批, + TRAIN_APPROVAL = 'jlglpxjhsp', // 培训计划审批 + SUPPLIER_APPROVAL = 'jlglsygfsp', // 溯源供方审批 + STANDARD_CHANGE_APPROVAL = 'sbglbzzzghsq', // 标准装置更换申请 + STANDARD_PAUSE_APPROVAL = 'sbglbzzzghsq', // 标准装置暂停申请 + STANDARD_REVERT_APPROVAL = 'sbglbzzzghsq', // 标准装置撤销申请 + STANDARD_RESUME_APPROVAL = 'sbglbzzzghsq', // 标准装置恢复申请 + STANDARD_CHECK_APPROVAL = 'sbglbzzzfcsq', // 标准装置复查申请 + DEVICE_UNUSED_APPROVAL = 'sbglsbxzsq', // 设备闲置申请 + DEVICE_SEALED_APPROVAL = 'sbglsbfcsq', // 设备封存申请 + DEVICE_UNSEALED_APPROVAL = 'sbglsbqfsq', // 设备启封申请 + DEVICE_SCRAPPED_ROVAL = 'sbglsbbfsq', // 设备报废申请 + DEVICE_HANDLE_APPROVAL = 'sbglsbczsq', // 设备处置申请 + DEVICE_CONSUMING_APPROVAL = 'sbglsblysq', // 设备领用申请 + DEVICE_BORROW_APPROVAL = 'sbglsbjysq', // 设备借用申请 } diff --git a/src/views/measure/source/approve.vue b/src/views/measure/source/approve.vue index 6227626..9ac8eea 100644 --- a/src/views/measure/source/approve.vue +++ b/src/views/measure/source/approve.vue @@ -1,52 +1,88 @@ - @@ -55,8 +91,8 @@ position: relative; .btns { - position: fixed; - top: 76px; + position: absolute; + top: -41px; right: 15px; z-index: 999; } diff --git a/src/views/measure/source/components/all.vue b/src/views/measure/source/components/all.vue deleted file mode 100644 index d124307..0000000 --- a/src/views/measure/source/components/all.vue +++ /dev/null @@ -1,17 +0,0 @@ - - - - diff --git a/src/views/measure/source/components/approvalPending.vue b/src/views/measure/source/components/approvalPending.vue deleted file mode 100644 index 8a7a8bc..0000000 --- a/src/views/measure/source/components/approvalPending.vue +++ /dev/null @@ -1,16 +0,0 @@ - - - - diff --git a/src/views/measure/source/components/canceled.vue b/src/views/measure/source/components/canceled.vue deleted file mode 100644 index 3b9657c..0000000 --- a/src/views/measure/source/components/canceled.vue +++ /dev/null @@ -1,15 +0,0 @@ - - - - diff --git a/src/views/measure/source/components/draftBox.vue b/src/views/measure/source/components/draftBox.vue deleted file mode 100644 index 43d7b75..0000000 --- a/src/views/measure/source/components/draftBox.vue +++ /dev/null @@ -1,15 +0,0 @@ - - - - diff --git a/src/views/measure/source/components/examineAndApprove.vue b/src/views/measure/source/components/examineAndApprove.vue deleted file mode 100644 index c13f95a..0000000 --- a/src/views/measure/source/components/examineAndApprove.vue +++ /dev/null @@ -1,17 +0,0 @@ - - - - diff --git a/src/views/measure/source/components/listApproval.vue b/src/views/measure/source/components/listApproval.vue new file mode 100644 index 0000000..3880028 --- /dev/null +++ b/src/views/measure/source/components/listApproval.vue @@ -0,0 +1,332 @@ + + + + diff --git a/src/views/measure/source/components/listPage.vue b/src/views/measure/source/components/listPage.vue deleted file mode 100644 index 31fb09f..0000000 --- a/src/views/measure/source/components/listPage.vue +++ /dev/null @@ -1,372 +0,0 @@ - - - - diff --git a/src/api/measure/source.ts b/src/api/measure/source.ts new file mode 100644 index 0000000..1b8bf27 --- /dev/null +++ b/src/api/measure/source.ts @@ -0,0 +1,84 @@ +/** + * 溯源供方请求接口 + */ +import request from '../index' +const prefix = '/meter' + +// 列表查询 +export function getSoucreList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/supplier/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function getSoucreListDelete(data: object) { + return request({ + url: `${prefix}/supplier/delete`, + method: 'post', + data, + }) +} + +// 查看详情 +export function getSoucreListDetail(data: object) { + return request({ + url: `${prefix}/supplier/detail`, + method: 'post', + data, + }) +} + +// 省级联动 +export function getSoucreListlevelType(pid: string) { + return request({ + url: `/sys/area/list?pid=${pid}`, + method: 'get', + }) +} + +// 提交数据 +export function sourceSubmit(data: object) { + return request({ + url: '/meter/supplier/submit', + method: 'post', + data, + }) +} +// 保存数据 +export function sourceSave(data: object) { + return request({ + url: `${prefix}/supplier/save`, + method: 'post', + data, + }) +} +// 更新数据 +export function getSoucreLisUpdate(data: object) { + return request({ + url: `${prefix}/supplier/update`, + method: 'post', + data, + }) +} + +// 导出详情 +export function getSoucreLisListExport(data: object) { + return request({ + url: `${prefix}/supplier/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 溯源供方审批接口 +export function getapprovalListPage(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/supplier/approval/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} diff --git a/src/api/system/source.ts b/src/api/system/source.ts deleted file mode 100644 index 93f5f12..0000000 --- a/src/api/system/source.ts +++ /dev/null @@ -1,76 +0,0 @@ -/** - * 溯源供方请求接口 - */ -import request from '../index' -const prefix = '/meter' - -// 列表查询 -export function getSoucreList(data: object) { - return request({ - url: `${prefix}/supplier/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 数据删除 -export function getSoucreListDelete(data: object) { - return request({ - url: `${prefix}/supplier/delete`, - method: 'post', - data, - }) -} - -// 查看详情 -export function getSoucreListDetail(data: object) { - return request({ - url: `${prefix}/supplier/detail`, - method: 'post', - data, - }) -} - -// 省级联动 -export function getSoucreListlevelType(pid: string) { - return request({ - url: `/sys/area/list?pid=${pid}`, - method: 'get', - }) -} - -// 新增数据 -export function getSoucreListAdd(data: object) { - return request({ - url: `${prefix}/supplier/add`, - method: 'post', - data, - }) -} -// 更新数据 -export function getSoucreLisUpdate(data: object) { - return request({ - url: `${prefix}/supplier/update`, - method: 'post', - data, - }) -} - -// 导出详情 -export function getSoucreLisListExport(data: object) { - return request({ - url: `${prefix}/supplier/listExport`, - method: 'post', - responseType: 'blob', - data, - }) -} - -// 溯源供方审批接口 -export function getapprovalListPage(data: object) { - return request({ - url: `${prefix}/supplier/approval/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} diff --git a/src/components.d.ts b/src/components.d.ts index 280906e..d419887 100644 --- a/src/components.d.ts +++ b/src/components.d.ts @@ -55,7 +55,6 @@ SelectEmployeesDialog: typeof import('./components/dialog/selectEmployeesDialog.vue')['default'] SelectResult: typeof import('./components/workFlow/selectResult.vue')['default'] SelectRoleDialog: typeof import('./components/dialog/selectRoleDialog.vue')['default'] - SelectTree: typeof import('./components/SelectTree/index.vue')['default'] SvgIcon: typeof import('./components/SvgIcon/index.vue')['default'] SystemInfo: typeof import('./components/SystemInfo/index.vue')['default'] TableContainer: typeof import('./components/TableContainer/index.vue')['default'] diff --git a/src/router/modules/measure.ts b/src/router/modules/measure.ts index f114ca2..73a7470 100644 --- a/src/router/modules/measure.ts +++ b/src/router/modules/measure.ts @@ -423,7 +423,7 @@ { path: 'approve/:type/:id?', name: 'ListpageSourceAdd', - component: () => import('@/views/measure/source/components/listPageAdd.vue'), + component: () => import('@/views/measure/source/components/sourceApprovalDetail.vue'), meta: { title: '溯源供方审批', icon: 'ep:key', diff --git a/src/store/modules/dict.ts b/src/store/modules/dict.ts index 7de3b8b..0719c75 100644 --- a/src/store/modules/dict.ts +++ b/src/store/modules/dict.ts @@ -6,6 +6,15 @@ state: () => ({ allDeptList: [] as DeptTreeNode[], // 所有部门列表 companyList: [] as DeptTreeNode[], // 公司列表 + approvalStatusList: { + 全部: '0', + 草稿箱: '1', + 待审批: '2', + 审批中: '3', + 已通过: '4', + 未通过: '5', + 已取消: '6', + }, // 审批状态 }), getters: { getAllDeptList: (state) => { @@ -14,6 +23,9 @@ getCompanyList: (state) => { return state.companyList }, + getApprovalStatus: (state) => { + return state.approvalStatusList + }, }, actions: { setAllDeptList(list: DeptTreeNode[]) { diff --git a/src/utils/scheduleDict.ts b/src/utils/scheduleDict.ts index 21d3721..9db0c6b 100644 --- a/src/utils/scheduleDict.ts +++ b/src/utils/scheduleDict.ts @@ -2,19 +2,19 @@ * 流程字典, 流程代号:流程id */ export enum SCHEDULE { - FILE_APPROVAL = '1', // 文件审批, - TRAIN_APPROVAL = '2', // 培训计划审批 - SUPPLIER_APPROVAL = '3', // 溯源供方审批 - STANDARD_CHANGE_APPROVAL = '4', // 标准装置更换申请 - STANDARD_PAUSE_APPROVAL = '5', // 标准装置暂停申请 - STANDARD_REVERT_APPROVAL = '6', // 标准装置撤销申请 - STANDARD_RESUME_APPROVAL = '7', // 标准装置恢复申请 - STANDARD_CHECK_APPROVAL = '8', // 标准装置复查申请 - DEVICE_UNUSED_APPROVAL = '9', // 设备闲置申请 - DEVICE_SEALED_APPROVAL = '10', // 设备封存申请 - DEVICE_UNSEALED_APPROVAL = '11', // 设备启封申请 - DEVICE_SCRAPPED_ROVAL = '12', // 设备报废申请 - DEVICE_HANDLE_APPROVAL = '13', // 设备处置申请 - DEVICE_CONSUMING_APPROVAL = '14', // 设备领用申请 - DEVICE_BORROW_APPROVAL = '15', // 设备借用申请 + FILE_APPROVAL = 'jlglwjsp', // 文件审批, + TRAIN_APPROVAL = 'jlglpxjhsp', // 培训计划审批 + SUPPLIER_APPROVAL = 'jlglsygfsp', // 溯源供方审批 + STANDARD_CHANGE_APPROVAL = 'sbglbzzzghsq', // 标准装置更换申请 + STANDARD_PAUSE_APPROVAL = 'sbglbzzzghsq', // 标准装置暂停申请 + STANDARD_REVERT_APPROVAL = 'sbglbzzzghsq', // 标准装置撤销申请 + STANDARD_RESUME_APPROVAL = 'sbglbzzzghsq', // 标准装置恢复申请 + STANDARD_CHECK_APPROVAL = 'sbglbzzzfcsq', // 标准装置复查申请 + DEVICE_UNUSED_APPROVAL = 'sbglsbxzsq', // 设备闲置申请 + DEVICE_SEALED_APPROVAL = 'sbglsbfcsq', // 设备封存申请 + DEVICE_UNSEALED_APPROVAL = 'sbglsbqfsq', // 设备启封申请 + DEVICE_SCRAPPED_ROVAL = 'sbglsbbfsq', // 设备报废申请 + DEVICE_HANDLE_APPROVAL = 'sbglsbczsq', // 设备处置申请 + DEVICE_CONSUMING_APPROVAL = 'sbglsblysq', // 设备领用申请 + DEVICE_BORROW_APPROVAL = 'sbglsbjysq', // 设备借用申请 } diff --git a/src/views/measure/source/approve.vue b/src/views/measure/source/approve.vue index 6227626..9ac8eea 100644 --- a/src/views/measure/source/approve.vue +++ b/src/views/measure/source/approve.vue @@ -1,52 +1,88 @@ - @@ -55,8 +91,8 @@ position: relative; .btns { - position: fixed; - top: 76px; + position: absolute; + top: -41px; right: 15px; z-index: 999; } diff --git a/src/views/measure/source/components/all.vue b/src/views/measure/source/components/all.vue deleted file mode 100644 index d124307..0000000 --- a/src/views/measure/source/components/all.vue +++ /dev/null @@ -1,17 +0,0 @@ - - - - diff --git a/src/views/measure/source/components/approvalPending.vue b/src/views/measure/source/components/approvalPending.vue deleted file mode 100644 index 8a7a8bc..0000000 --- a/src/views/measure/source/components/approvalPending.vue +++ /dev/null @@ -1,16 +0,0 @@ - - - - diff --git a/src/views/measure/source/components/canceled.vue b/src/views/measure/source/components/canceled.vue deleted file mode 100644 index 3b9657c..0000000 --- a/src/views/measure/source/components/canceled.vue +++ /dev/null @@ -1,15 +0,0 @@ - - - - diff --git a/src/views/measure/source/components/draftBox.vue b/src/views/measure/source/components/draftBox.vue deleted file mode 100644 index 43d7b75..0000000 --- a/src/views/measure/source/components/draftBox.vue +++ /dev/null @@ -1,15 +0,0 @@ - - - - diff --git a/src/views/measure/source/components/examineAndApprove.vue b/src/views/measure/source/components/examineAndApprove.vue deleted file mode 100644 index c13f95a..0000000 --- a/src/views/measure/source/components/examineAndApprove.vue +++ /dev/null @@ -1,17 +0,0 @@ - - - - diff --git a/src/views/measure/source/components/listApproval.vue b/src/views/measure/source/components/listApproval.vue new file mode 100644 index 0000000..3880028 --- /dev/null +++ b/src/views/measure/source/components/listApproval.vue @@ -0,0 +1,332 @@ + + + + diff --git a/src/views/measure/source/components/listPage.vue b/src/views/measure/source/components/listPage.vue deleted file mode 100644 index 31fb09f..0000000 --- a/src/views/measure/source/components/listPage.vue +++ /dev/null @@ -1,372 +0,0 @@ - - - - diff --git a/src/views/measure/source/components/listPageAdd.vue b/src/views/measure/source/components/listPageAdd.vue deleted file mode 100644 index 289b3e4..0000000 --- a/src/views/measure/source/components/listPageAdd.vue +++ /dev/null @@ -1,729 +0,0 @@ - - - - - diff --git a/src/api/measure/source.ts b/src/api/measure/source.ts new file mode 100644 index 0000000..1b8bf27 --- /dev/null +++ b/src/api/measure/source.ts @@ -0,0 +1,84 @@ +/** + * 溯源供方请求接口 + */ +import request from '../index' +const prefix = '/meter' + +// 列表查询 +export function getSoucreList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/supplier/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function getSoucreListDelete(data: object) { + return request({ + url: `${prefix}/supplier/delete`, + method: 'post', + data, + }) +} + +// 查看详情 +export function getSoucreListDetail(data: object) { + return request({ + url: `${prefix}/supplier/detail`, + method: 'post', + data, + }) +} + +// 省级联动 +export function getSoucreListlevelType(pid: string) { + return request({ + url: `/sys/area/list?pid=${pid}`, + method: 'get', + }) +} + +// 提交数据 +export function sourceSubmit(data: object) { + return request({ + url: '/meter/supplier/submit', + method: 'post', + data, + }) +} +// 保存数据 +export function sourceSave(data: object) { + return request({ + url: `${prefix}/supplier/save`, + method: 'post', + data, + }) +} +// 更新数据 +export function getSoucreLisUpdate(data: object) { + return request({ + url: `${prefix}/supplier/update`, + method: 'post', + data, + }) +} + +// 导出详情 +export function getSoucreLisListExport(data: object) { + return request({ + url: `${prefix}/supplier/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 溯源供方审批接口 +export function getapprovalListPage(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/supplier/approval/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} diff --git a/src/api/system/source.ts b/src/api/system/source.ts deleted file mode 100644 index 93f5f12..0000000 --- a/src/api/system/source.ts +++ /dev/null @@ -1,76 +0,0 @@ -/** - * 溯源供方请求接口 - */ -import request from '../index' -const prefix = '/meter' - -// 列表查询 -export function getSoucreList(data: object) { - return request({ - url: `${prefix}/supplier/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 数据删除 -export function getSoucreListDelete(data: object) { - return request({ - url: `${prefix}/supplier/delete`, - method: 'post', - data, - }) -} - -// 查看详情 -export function getSoucreListDetail(data: object) { - return request({ - url: `${prefix}/supplier/detail`, - method: 'post', - data, - }) -} - -// 省级联动 -export function getSoucreListlevelType(pid: string) { - return request({ - url: `/sys/area/list?pid=${pid}`, - method: 'get', - }) -} - -// 新增数据 -export function getSoucreListAdd(data: object) { - return request({ - url: `${prefix}/supplier/add`, - method: 'post', - data, - }) -} -// 更新数据 -export function getSoucreLisUpdate(data: object) { - return request({ - url: `${prefix}/supplier/update`, - method: 'post', - data, - }) -} - -// 导出详情 -export function getSoucreLisListExport(data: object) { - return request({ - url: `${prefix}/supplier/listExport`, - method: 'post', - responseType: 'blob', - data, - }) -} - -// 溯源供方审批接口 -export function getapprovalListPage(data: object) { - return request({ - url: `${prefix}/supplier/approval/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} diff --git a/src/components.d.ts b/src/components.d.ts index 280906e..d419887 100644 --- a/src/components.d.ts +++ b/src/components.d.ts @@ -55,7 +55,6 @@ SelectEmployeesDialog: typeof import('./components/dialog/selectEmployeesDialog.vue')['default'] SelectResult: typeof import('./components/workFlow/selectResult.vue')['default'] SelectRoleDialog: typeof import('./components/dialog/selectRoleDialog.vue')['default'] - SelectTree: typeof import('./components/SelectTree/index.vue')['default'] SvgIcon: typeof import('./components/SvgIcon/index.vue')['default'] SystemInfo: typeof import('./components/SystemInfo/index.vue')['default'] TableContainer: typeof import('./components/TableContainer/index.vue')['default'] diff --git a/src/router/modules/measure.ts b/src/router/modules/measure.ts index f114ca2..73a7470 100644 --- a/src/router/modules/measure.ts +++ b/src/router/modules/measure.ts @@ -423,7 +423,7 @@ { path: 'approve/:type/:id?', name: 'ListpageSourceAdd', - component: () => import('@/views/measure/source/components/listPageAdd.vue'), + component: () => import('@/views/measure/source/components/sourceApprovalDetail.vue'), meta: { title: '溯源供方审批', icon: 'ep:key', diff --git a/src/store/modules/dict.ts b/src/store/modules/dict.ts index 7de3b8b..0719c75 100644 --- a/src/store/modules/dict.ts +++ b/src/store/modules/dict.ts @@ -6,6 +6,15 @@ state: () => ({ allDeptList: [] as DeptTreeNode[], // 所有部门列表 companyList: [] as DeptTreeNode[], // 公司列表 + approvalStatusList: { + 全部: '0', + 草稿箱: '1', + 待审批: '2', + 审批中: '3', + 已通过: '4', + 未通过: '5', + 已取消: '6', + }, // 审批状态 }), getters: { getAllDeptList: (state) => { @@ -14,6 +23,9 @@ getCompanyList: (state) => { return state.companyList }, + getApprovalStatus: (state) => { + return state.approvalStatusList + }, }, actions: { setAllDeptList(list: DeptTreeNode[]) { diff --git a/src/utils/scheduleDict.ts b/src/utils/scheduleDict.ts index 21d3721..9db0c6b 100644 --- a/src/utils/scheduleDict.ts +++ b/src/utils/scheduleDict.ts @@ -2,19 +2,19 @@ * 流程字典, 流程代号:流程id */ export enum SCHEDULE { - FILE_APPROVAL = '1', // 文件审批, - TRAIN_APPROVAL = '2', // 培训计划审批 - SUPPLIER_APPROVAL = '3', // 溯源供方审批 - STANDARD_CHANGE_APPROVAL = '4', // 标准装置更换申请 - STANDARD_PAUSE_APPROVAL = '5', // 标准装置暂停申请 - STANDARD_REVERT_APPROVAL = '6', // 标准装置撤销申请 - STANDARD_RESUME_APPROVAL = '7', // 标准装置恢复申请 - STANDARD_CHECK_APPROVAL = '8', // 标准装置复查申请 - DEVICE_UNUSED_APPROVAL = '9', // 设备闲置申请 - DEVICE_SEALED_APPROVAL = '10', // 设备封存申请 - DEVICE_UNSEALED_APPROVAL = '11', // 设备启封申请 - DEVICE_SCRAPPED_ROVAL = '12', // 设备报废申请 - DEVICE_HANDLE_APPROVAL = '13', // 设备处置申请 - DEVICE_CONSUMING_APPROVAL = '14', // 设备领用申请 - DEVICE_BORROW_APPROVAL = '15', // 设备借用申请 + FILE_APPROVAL = 'jlglwjsp', // 文件审批, + TRAIN_APPROVAL = 'jlglpxjhsp', // 培训计划审批 + SUPPLIER_APPROVAL = 'jlglsygfsp', // 溯源供方审批 + STANDARD_CHANGE_APPROVAL = 'sbglbzzzghsq', // 标准装置更换申请 + STANDARD_PAUSE_APPROVAL = 'sbglbzzzghsq', // 标准装置暂停申请 + STANDARD_REVERT_APPROVAL = 'sbglbzzzghsq', // 标准装置撤销申请 + STANDARD_RESUME_APPROVAL = 'sbglbzzzghsq', // 标准装置恢复申请 + STANDARD_CHECK_APPROVAL = 'sbglbzzzfcsq', // 标准装置复查申请 + DEVICE_UNUSED_APPROVAL = 'sbglsbxzsq', // 设备闲置申请 + DEVICE_SEALED_APPROVAL = 'sbglsbfcsq', // 设备封存申请 + DEVICE_UNSEALED_APPROVAL = 'sbglsbqfsq', // 设备启封申请 + DEVICE_SCRAPPED_ROVAL = 'sbglsbbfsq', // 设备报废申请 + DEVICE_HANDLE_APPROVAL = 'sbglsbczsq', // 设备处置申请 + DEVICE_CONSUMING_APPROVAL = 'sbglsblysq', // 设备领用申请 + DEVICE_BORROW_APPROVAL = 'sbglsbjysq', // 设备借用申请 } diff --git a/src/views/measure/source/approve.vue b/src/views/measure/source/approve.vue index 6227626..9ac8eea 100644 --- a/src/views/measure/source/approve.vue +++ b/src/views/measure/source/approve.vue @@ -1,52 +1,88 @@ - @@ -55,8 +91,8 @@ position: relative; .btns { - position: fixed; - top: 76px; + position: absolute; + top: -41px; right: 15px; z-index: 999; } diff --git a/src/views/measure/source/components/all.vue b/src/views/measure/source/components/all.vue deleted file mode 100644 index d124307..0000000 --- a/src/views/measure/source/components/all.vue +++ /dev/null @@ -1,17 +0,0 @@ - - - - diff --git a/src/views/measure/source/components/approvalPending.vue b/src/views/measure/source/components/approvalPending.vue deleted file mode 100644 index 8a7a8bc..0000000 --- a/src/views/measure/source/components/approvalPending.vue +++ /dev/null @@ -1,16 +0,0 @@ - - - - diff --git a/src/views/measure/source/components/canceled.vue b/src/views/measure/source/components/canceled.vue deleted file mode 100644 index 3b9657c..0000000 --- a/src/views/measure/source/components/canceled.vue +++ /dev/null @@ -1,15 +0,0 @@ - - - - diff --git a/src/views/measure/source/components/draftBox.vue b/src/views/measure/source/components/draftBox.vue deleted file mode 100644 index 43d7b75..0000000 --- a/src/views/measure/source/components/draftBox.vue +++ /dev/null @@ -1,15 +0,0 @@ - - - - diff --git a/src/views/measure/source/components/examineAndApprove.vue b/src/views/measure/source/components/examineAndApprove.vue deleted file mode 100644 index c13f95a..0000000 --- a/src/views/measure/source/components/examineAndApprove.vue +++ /dev/null @@ -1,17 +0,0 @@ - - - - diff --git a/src/views/measure/source/components/listApproval.vue b/src/views/measure/source/components/listApproval.vue new file mode 100644 index 0000000..3880028 --- /dev/null +++ b/src/views/measure/source/components/listApproval.vue @@ -0,0 +1,332 @@ + + + + diff --git a/src/views/measure/source/components/listPage.vue b/src/views/measure/source/components/listPage.vue deleted file mode 100644 index 31fb09f..0000000 --- a/src/views/measure/source/components/listPage.vue +++ /dev/null @@ -1,372 +0,0 @@ - - - - diff --git a/src/views/measure/source/components/listPageAdd.vue b/src/views/measure/source/components/listPageAdd.vue deleted file mode 100644 index 289b3e4..0000000 --- a/src/views/measure/source/components/listPageAdd.vue +++ /dev/null @@ -1,729 +0,0 @@ - - - - - diff --git a/src/views/measure/source/components/manageBox.vue b/src/views/measure/source/components/manageBox.vue deleted file mode 100644 index c5ced8f..0000000 --- a/src/views/measure/source/components/manageBox.vue +++ /dev/null @@ -1,99 +0,0 @@ - - - diff --git a/src/api/measure/source.ts b/src/api/measure/source.ts new file mode 100644 index 0000000..1b8bf27 --- /dev/null +++ b/src/api/measure/source.ts @@ -0,0 +1,84 @@ +/** + * 溯源供方请求接口 + */ +import request from '../index' +const prefix = '/meter' + +// 列表查询 +export function getSoucreList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/supplier/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function getSoucreListDelete(data: object) { + return request({ + url: `${prefix}/supplier/delete`, + method: 'post', + data, + }) +} + +// 查看详情 +export function getSoucreListDetail(data: object) { + return request({ + url: `${prefix}/supplier/detail`, + method: 'post', + data, + }) +} + +// 省级联动 +export function getSoucreListlevelType(pid: string) { + return request({ + url: `/sys/area/list?pid=${pid}`, + method: 'get', + }) +} + +// 提交数据 +export function sourceSubmit(data: object) { + return request({ + url: '/meter/supplier/submit', + method: 'post', + data, + }) +} +// 保存数据 +export function sourceSave(data: object) { + return request({ + url: `${prefix}/supplier/save`, + method: 'post', + data, + }) +} +// 更新数据 +export function getSoucreLisUpdate(data: object) { + return request({ + url: `${prefix}/supplier/update`, + method: 'post', + data, + }) +} + +// 导出详情 +export function getSoucreLisListExport(data: object) { + return request({ + url: `${prefix}/supplier/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 溯源供方审批接口 +export function getapprovalListPage(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/supplier/approval/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} diff --git a/src/api/system/source.ts b/src/api/system/source.ts deleted file mode 100644 index 93f5f12..0000000 --- a/src/api/system/source.ts +++ /dev/null @@ -1,76 +0,0 @@ -/** - * 溯源供方请求接口 - */ -import request from '../index' -const prefix = '/meter' - -// 列表查询 -export function getSoucreList(data: object) { - return request({ - url: `${prefix}/supplier/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 数据删除 -export function getSoucreListDelete(data: object) { - return request({ - url: `${prefix}/supplier/delete`, - method: 'post', - data, - }) -} - -// 查看详情 -export function getSoucreListDetail(data: object) { - return request({ - url: `${prefix}/supplier/detail`, - method: 'post', - data, - }) -} - -// 省级联动 -export function getSoucreListlevelType(pid: string) { - return request({ - url: `/sys/area/list?pid=${pid}`, - method: 'get', - }) -} - -// 新增数据 -export function getSoucreListAdd(data: object) { - return request({ - url: `${prefix}/supplier/add`, - method: 'post', - data, - }) -} -// 更新数据 -export function getSoucreLisUpdate(data: object) { - return request({ - url: `${prefix}/supplier/update`, - method: 'post', - data, - }) -} - -// 导出详情 -export function getSoucreLisListExport(data: object) { - return request({ - url: `${prefix}/supplier/listExport`, - method: 'post', - responseType: 'blob', - data, - }) -} - -// 溯源供方审批接口 -export function getapprovalListPage(data: object) { - return request({ - url: `${prefix}/supplier/approval/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} diff --git a/src/components.d.ts b/src/components.d.ts index 280906e..d419887 100644 --- a/src/components.d.ts +++ b/src/components.d.ts @@ -55,7 +55,6 @@ SelectEmployeesDialog: typeof import('./components/dialog/selectEmployeesDialog.vue')['default'] SelectResult: typeof import('./components/workFlow/selectResult.vue')['default'] SelectRoleDialog: typeof import('./components/dialog/selectRoleDialog.vue')['default'] - SelectTree: typeof import('./components/SelectTree/index.vue')['default'] SvgIcon: typeof import('./components/SvgIcon/index.vue')['default'] SystemInfo: typeof import('./components/SystemInfo/index.vue')['default'] TableContainer: typeof import('./components/TableContainer/index.vue')['default'] diff --git a/src/router/modules/measure.ts b/src/router/modules/measure.ts index f114ca2..73a7470 100644 --- a/src/router/modules/measure.ts +++ b/src/router/modules/measure.ts @@ -423,7 +423,7 @@ { path: 'approve/:type/:id?', name: 'ListpageSourceAdd', - component: () => import('@/views/measure/source/components/listPageAdd.vue'), + component: () => import('@/views/measure/source/components/sourceApprovalDetail.vue'), meta: { title: '溯源供方审批', icon: 'ep:key', diff --git a/src/store/modules/dict.ts b/src/store/modules/dict.ts index 7de3b8b..0719c75 100644 --- a/src/store/modules/dict.ts +++ b/src/store/modules/dict.ts @@ -6,6 +6,15 @@ state: () => ({ allDeptList: [] as DeptTreeNode[], // 所有部门列表 companyList: [] as DeptTreeNode[], // 公司列表 + approvalStatusList: { + 全部: '0', + 草稿箱: '1', + 待审批: '2', + 审批中: '3', + 已通过: '4', + 未通过: '5', + 已取消: '6', + }, // 审批状态 }), getters: { getAllDeptList: (state) => { @@ -14,6 +23,9 @@ getCompanyList: (state) => { return state.companyList }, + getApprovalStatus: (state) => { + return state.approvalStatusList + }, }, actions: { setAllDeptList(list: DeptTreeNode[]) { diff --git a/src/utils/scheduleDict.ts b/src/utils/scheduleDict.ts index 21d3721..9db0c6b 100644 --- a/src/utils/scheduleDict.ts +++ b/src/utils/scheduleDict.ts @@ -2,19 +2,19 @@ * 流程字典, 流程代号:流程id */ export enum SCHEDULE { - FILE_APPROVAL = '1', // 文件审批, - TRAIN_APPROVAL = '2', // 培训计划审批 - SUPPLIER_APPROVAL = '3', // 溯源供方审批 - STANDARD_CHANGE_APPROVAL = '4', // 标准装置更换申请 - STANDARD_PAUSE_APPROVAL = '5', // 标准装置暂停申请 - STANDARD_REVERT_APPROVAL = '6', // 标准装置撤销申请 - STANDARD_RESUME_APPROVAL = '7', // 标准装置恢复申请 - STANDARD_CHECK_APPROVAL = '8', // 标准装置复查申请 - DEVICE_UNUSED_APPROVAL = '9', // 设备闲置申请 - DEVICE_SEALED_APPROVAL = '10', // 设备封存申请 - DEVICE_UNSEALED_APPROVAL = '11', // 设备启封申请 - DEVICE_SCRAPPED_ROVAL = '12', // 设备报废申请 - DEVICE_HANDLE_APPROVAL = '13', // 设备处置申请 - DEVICE_CONSUMING_APPROVAL = '14', // 设备领用申请 - DEVICE_BORROW_APPROVAL = '15', // 设备借用申请 + FILE_APPROVAL = 'jlglwjsp', // 文件审批, + TRAIN_APPROVAL = 'jlglpxjhsp', // 培训计划审批 + SUPPLIER_APPROVAL = 'jlglsygfsp', // 溯源供方审批 + STANDARD_CHANGE_APPROVAL = 'sbglbzzzghsq', // 标准装置更换申请 + STANDARD_PAUSE_APPROVAL = 'sbglbzzzghsq', // 标准装置暂停申请 + STANDARD_REVERT_APPROVAL = 'sbglbzzzghsq', // 标准装置撤销申请 + STANDARD_RESUME_APPROVAL = 'sbglbzzzghsq', // 标准装置恢复申请 + STANDARD_CHECK_APPROVAL = 'sbglbzzzfcsq', // 标准装置复查申请 + DEVICE_UNUSED_APPROVAL = 'sbglsbxzsq', // 设备闲置申请 + DEVICE_SEALED_APPROVAL = 'sbglsbfcsq', // 设备封存申请 + DEVICE_UNSEALED_APPROVAL = 'sbglsbqfsq', // 设备启封申请 + DEVICE_SCRAPPED_ROVAL = 'sbglsbbfsq', // 设备报废申请 + DEVICE_HANDLE_APPROVAL = 'sbglsbczsq', // 设备处置申请 + DEVICE_CONSUMING_APPROVAL = 'sbglsblysq', // 设备领用申请 + DEVICE_BORROW_APPROVAL = 'sbglsbjysq', // 设备借用申请 } diff --git a/src/views/measure/source/approve.vue b/src/views/measure/source/approve.vue index 6227626..9ac8eea 100644 --- a/src/views/measure/source/approve.vue +++ b/src/views/measure/source/approve.vue @@ -1,52 +1,88 @@ - @@ -55,8 +91,8 @@ position: relative; .btns { - position: fixed; - top: 76px; + position: absolute; + top: -41px; right: 15px; z-index: 999; } diff --git a/src/views/measure/source/components/all.vue b/src/views/measure/source/components/all.vue deleted file mode 100644 index d124307..0000000 --- a/src/views/measure/source/components/all.vue +++ /dev/null @@ -1,17 +0,0 @@ - - - - diff --git a/src/views/measure/source/components/approvalPending.vue b/src/views/measure/source/components/approvalPending.vue deleted file mode 100644 index 8a7a8bc..0000000 --- a/src/views/measure/source/components/approvalPending.vue +++ /dev/null @@ -1,16 +0,0 @@ - - - - diff --git a/src/views/measure/source/components/canceled.vue b/src/views/measure/source/components/canceled.vue deleted file mode 100644 index 3b9657c..0000000 --- a/src/views/measure/source/components/canceled.vue +++ /dev/null @@ -1,15 +0,0 @@ - - - - diff --git a/src/views/measure/source/components/draftBox.vue b/src/views/measure/source/components/draftBox.vue deleted file mode 100644 index 43d7b75..0000000 --- a/src/views/measure/source/components/draftBox.vue +++ /dev/null @@ -1,15 +0,0 @@ - - - - diff --git a/src/views/measure/source/components/examineAndApprove.vue b/src/views/measure/source/components/examineAndApprove.vue deleted file mode 100644 index c13f95a..0000000 --- a/src/views/measure/source/components/examineAndApprove.vue +++ /dev/null @@ -1,17 +0,0 @@ - - - - diff --git a/src/views/measure/source/components/listApproval.vue b/src/views/measure/source/components/listApproval.vue new file mode 100644 index 0000000..3880028 --- /dev/null +++ b/src/views/measure/source/components/listApproval.vue @@ -0,0 +1,332 @@ + + + + diff --git a/src/views/measure/source/components/listPage.vue b/src/views/measure/source/components/listPage.vue deleted file mode 100644 index 31fb09f..0000000 --- a/src/views/measure/source/components/listPage.vue +++ /dev/null @@ -1,372 +0,0 @@ - - - - diff --git a/src/views/measure/source/components/listPageAdd.vue b/src/views/measure/source/components/listPageAdd.vue deleted file mode 100644 index 289b3e4..0000000 --- a/src/views/measure/source/components/listPageAdd.vue +++ /dev/null @@ -1,729 +0,0 @@ - - - - - diff --git a/src/views/measure/source/components/manageBox.vue b/src/views/measure/source/components/manageBox.vue deleted file mode 100644 index c5ced8f..0000000 --- a/src/views/measure/source/components/manageBox.vue +++ /dev/null @@ -1,99 +0,0 @@ - - - diff --git a/src/views/measure/source/components/notPass.vue b/src/views/measure/source/components/notPass.vue deleted file mode 100644 index 5a4b817..0000000 --- a/src/views/measure/source/components/notPass.vue +++ /dev/null @@ -1,10 +0,0 @@ - - - - diff --git a/src/api/measure/source.ts b/src/api/measure/source.ts new file mode 100644 index 0000000..1b8bf27 --- /dev/null +++ b/src/api/measure/source.ts @@ -0,0 +1,84 @@ +/** + * 溯源供方请求接口 + */ +import request from '../index' +const prefix = '/meter' + +// 列表查询 +export function getSoucreList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/supplier/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function getSoucreListDelete(data: object) { + return request({ + url: `${prefix}/supplier/delete`, + method: 'post', + data, + }) +} + +// 查看详情 +export function getSoucreListDetail(data: object) { + return request({ + url: `${prefix}/supplier/detail`, + method: 'post', + data, + }) +} + +// 省级联动 +export function getSoucreListlevelType(pid: string) { + return request({ + url: `/sys/area/list?pid=${pid}`, + method: 'get', + }) +} + +// 提交数据 +export function sourceSubmit(data: object) { + return request({ + url: '/meter/supplier/submit', + method: 'post', + data, + }) +} +// 保存数据 +export function sourceSave(data: object) { + return request({ + url: `${prefix}/supplier/save`, + method: 'post', + data, + }) +} +// 更新数据 +export function getSoucreLisUpdate(data: object) { + return request({ + url: `${prefix}/supplier/update`, + method: 'post', + data, + }) +} + +// 导出详情 +export function getSoucreLisListExport(data: object) { + return request({ + url: `${prefix}/supplier/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 溯源供方审批接口 +export function getapprovalListPage(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/supplier/approval/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} diff --git a/src/api/system/source.ts b/src/api/system/source.ts deleted file mode 100644 index 93f5f12..0000000 --- a/src/api/system/source.ts +++ /dev/null @@ -1,76 +0,0 @@ -/** - * 溯源供方请求接口 - */ -import request from '../index' -const prefix = '/meter' - -// 列表查询 -export function getSoucreList(data: object) { - return request({ - url: `${prefix}/supplier/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 数据删除 -export function getSoucreListDelete(data: object) { - return request({ - url: `${prefix}/supplier/delete`, - method: 'post', - data, - }) -} - -// 查看详情 -export function getSoucreListDetail(data: object) { - return request({ - url: `${prefix}/supplier/detail`, - method: 'post', - data, - }) -} - -// 省级联动 -export function getSoucreListlevelType(pid: string) { - return request({ - url: `/sys/area/list?pid=${pid}`, - method: 'get', - }) -} - -// 新增数据 -export function getSoucreListAdd(data: object) { - return request({ - url: `${prefix}/supplier/add`, - method: 'post', - data, - }) -} -// 更新数据 -export function getSoucreLisUpdate(data: object) { - return request({ - url: `${prefix}/supplier/update`, - method: 'post', - data, - }) -} - -// 导出详情 -export function getSoucreLisListExport(data: object) { - return request({ - url: `${prefix}/supplier/listExport`, - method: 'post', - responseType: 'blob', - data, - }) -} - -// 溯源供方审批接口 -export function getapprovalListPage(data: object) { - return request({ - url: `${prefix}/supplier/approval/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} diff --git a/src/components.d.ts b/src/components.d.ts index 280906e..d419887 100644 --- a/src/components.d.ts +++ b/src/components.d.ts @@ -55,7 +55,6 @@ SelectEmployeesDialog: typeof import('./components/dialog/selectEmployeesDialog.vue')['default'] SelectResult: typeof import('./components/workFlow/selectResult.vue')['default'] SelectRoleDialog: typeof import('./components/dialog/selectRoleDialog.vue')['default'] - SelectTree: typeof import('./components/SelectTree/index.vue')['default'] SvgIcon: typeof import('./components/SvgIcon/index.vue')['default'] SystemInfo: typeof import('./components/SystemInfo/index.vue')['default'] TableContainer: typeof import('./components/TableContainer/index.vue')['default'] diff --git a/src/router/modules/measure.ts b/src/router/modules/measure.ts index f114ca2..73a7470 100644 --- a/src/router/modules/measure.ts +++ b/src/router/modules/measure.ts @@ -423,7 +423,7 @@ { path: 'approve/:type/:id?', name: 'ListpageSourceAdd', - component: () => import('@/views/measure/source/components/listPageAdd.vue'), + component: () => import('@/views/measure/source/components/sourceApprovalDetail.vue'), meta: { title: '溯源供方审批', icon: 'ep:key', diff --git a/src/store/modules/dict.ts b/src/store/modules/dict.ts index 7de3b8b..0719c75 100644 --- a/src/store/modules/dict.ts +++ b/src/store/modules/dict.ts @@ -6,6 +6,15 @@ state: () => ({ allDeptList: [] as DeptTreeNode[], // 所有部门列表 companyList: [] as DeptTreeNode[], // 公司列表 + approvalStatusList: { + 全部: '0', + 草稿箱: '1', + 待审批: '2', + 审批中: '3', + 已通过: '4', + 未通过: '5', + 已取消: '6', + }, // 审批状态 }), getters: { getAllDeptList: (state) => { @@ -14,6 +23,9 @@ getCompanyList: (state) => { return state.companyList }, + getApprovalStatus: (state) => { + return state.approvalStatusList + }, }, actions: { setAllDeptList(list: DeptTreeNode[]) { diff --git a/src/utils/scheduleDict.ts b/src/utils/scheduleDict.ts index 21d3721..9db0c6b 100644 --- a/src/utils/scheduleDict.ts +++ b/src/utils/scheduleDict.ts @@ -2,19 +2,19 @@ * 流程字典, 流程代号:流程id */ export enum SCHEDULE { - FILE_APPROVAL = '1', // 文件审批, - TRAIN_APPROVAL = '2', // 培训计划审批 - SUPPLIER_APPROVAL = '3', // 溯源供方审批 - STANDARD_CHANGE_APPROVAL = '4', // 标准装置更换申请 - STANDARD_PAUSE_APPROVAL = '5', // 标准装置暂停申请 - STANDARD_REVERT_APPROVAL = '6', // 标准装置撤销申请 - STANDARD_RESUME_APPROVAL = '7', // 标准装置恢复申请 - STANDARD_CHECK_APPROVAL = '8', // 标准装置复查申请 - DEVICE_UNUSED_APPROVAL = '9', // 设备闲置申请 - DEVICE_SEALED_APPROVAL = '10', // 设备封存申请 - DEVICE_UNSEALED_APPROVAL = '11', // 设备启封申请 - DEVICE_SCRAPPED_ROVAL = '12', // 设备报废申请 - DEVICE_HANDLE_APPROVAL = '13', // 设备处置申请 - DEVICE_CONSUMING_APPROVAL = '14', // 设备领用申请 - DEVICE_BORROW_APPROVAL = '15', // 设备借用申请 + FILE_APPROVAL = 'jlglwjsp', // 文件审批, + TRAIN_APPROVAL = 'jlglpxjhsp', // 培训计划审批 + SUPPLIER_APPROVAL = 'jlglsygfsp', // 溯源供方审批 + STANDARD_CHANGE_APPROVAL = 'sbglbzzzghsq', // 标准装置更换申请 + STANDARD_PAUSE_APPROVAL = 'sbglbzzzghsq', // 标准装置暂停申请 + STANDARD_REVERT_APPROVAL = 'sbglbzzzghsq', // 标准装置撤销申请 + STANDARD_RESUME_APPROVAL = 'sbglbzzzghsq', // 标准装置恢复申请 + STANDARD_CHECK_APPROVAL = 'sbglbzzzfcsq', // 标准装置复查申请 + DEVICE_UNUSED_APPROVAL = 'sbglsbxzsq', // 设备闲置申请 + DEVICE_SEALED_APPROVAL = 'sbglsbfcsq', // 设备封存申请 + DEVICE_UNSEALED_APPROVAL = 'sbglsbqfsq', // 设备启封申请 + DEVICE_SCRAPPED_ROVAL = 'sbglsbbfsq', // 设备报废申请 + DEVICE_HANDLE_APPROVAL = 'sbglsbczsq', // 设备处置申请 + DEVICE_CONSUMING_APPROVAL = 'sbglsblysq', // 设备领用申请 + DEVICE_BORROW_APPROVAL = 'sbglsbjysq', // 设备借用申请 } diff --git a/src/views/measure/source/approve.vue b/src/views/measure/source/approve.vue index 6227626..9ac8eea 100644 --- a/src/views/measure/source/approve.vue +++ b/src/views/measure/source/approve.vue @@ -1,52 +1,88 @@ - @@ -55,8 +91,8 @@ position: relative; .btns { - position: fixed; - top: 76px; + position: absolute; + top: -41px; right: 15px; z-index: 999; } diff --git a/src/views/measure/source/components/all.vue b/src/views/measure/source/components/all.vue deleted file mode 100644 index d124307..0000000 --- a/src/views/measure/source/components/all.vue +++ /dev/null @@ -1,17 +0,0 @@ - - - - diff --git a/src/views/measure/source/components/approvalPending.vue b/src/views/measure/source/components/approvalPending.vue deleted file mode 100644 index 8a7a8bc..0000000 --- a/src/views/measure/source/components/approvalPending.vue +++ /dev/null @@ -1,16 +0,0 @@ - - - - diff --git a/src/views/measure/source/components/canceled.vue b/src/views/measure/source/components/canceled.vue deleted file mode 100644 index 3b9657c..0000000 --- a/src/views/measure/source/components/canceled.vue +++ /dev/null @@ -1,15 +0,0 @@ - - - - diff --git a/src/views/measure/source/components/draftBox.vue b/src/views/measure/source/components/draftBox.vue deleted file mode 100644 index 43d7b75..0000000 --- a/src/views/measure/source/components/draftBox.vue +++ /dev/null @@ -1,15 +0,0 @@ - - - - diff --git a/src/views/measure/source/components/examineAndApprove.vue b/src/views/measure/source/components/examineAndApprove.vue deleted file mode 100644 index c13f95a..0000000 --- a/src/views/measure/source/components/examineAndApprove.vue +++ /dev/null @@ -1,17 +0,0 @@ - - - - diff --git a/src/views/measure/source/components/listApproval.vue b/src/views/measure/source/components/listApproval.vue new file mode 100644 index 0000000..3880028 --- /dev/null +++ b/src/views/measure/source/components/listApproval.vue @@ -0,0 +1,332 @@ + + + + diff --git a/src/views/measure/source/components/listPage.vue b/src/views/measure/source/components/listPage.vue deleted file mode 100644 index 31fb09f..0000000 --- a/src/views/measure/source/components/listPage.vue +++ /dev/null @@ -1,372 +0,0 @@ - - - - diff --git a/src/views/measure/source/components/listPageAdd.vue b/src/views/measure/source/components/listPageAdd.vue deleted file mode 100644 index 289b3e4..0000000 --- a/src/views/measure/source/components/listPageAdd.vue +++ /dev/null @@ -1,729 +0,0 @@ - - - - - diff --git a/src/views/measure/source/components/manageBox.vue b/src/views/measure/source/components/manageBox.vue deleted file mode 100644 index c5ced8f..0000000 --- a/src/views/measure/source/components/manageBox.vue +++ /dev/null @@ -1,99 +0,0 @@ - - - diff --git a/src/views/measure/source/components/notPass.vue b/src/views/measure/source/components/notPass.vue deleted file mode 100644 index 5a4b817..0000000 --- a/src/views/measure/source/components/notPass.vue +++ /dev/null @@ -1,10 +0,0 @@ - - - - diff --git a/src/views/measure/source/components/passed.vue b/src/views/measure/source/components/passed.vue deleted file mode 100644 index 31cd21c..0000000 --- a/src/views/measure/source/components/passed.vue +++ /dev/null @@ -1,10 +0,0 @@ - - - - diff --git a/src/api/measure/source.ts b/src/api/measure/source.ts new file mode 100644 index 0000000..1b8bf27 --- /dev/null +++ b/src/api/measure/source.ts @@ -0,0 +1,84 @@ +/** + * 溯源供方请求接口 + */ +import request from '../index' +const prefix = '/meter' + +// 列表查询 +export function getSoucreList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/supplier/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function getSoucreListDelete(data: object) { + return request({ + url: `${prefix}/supplier/delete`, + method: 'post', + data, + }) +} + +// 查看详情 +export function getSoucreListDetail(data: object) { + return request({ + url: `${prefix}/supplier/detail`, + method: 'post', + data, + }) +} + +// 省级联动 +export function getSoucreListlevelType(pid: string) { + return request({ + url: `/sys/area/list?pid=${pid}`, + method: 'get', + }) +} + +// 提交数据 +export function sourceSubmit(data: object) { + return request({ + url: '/meter/supplier/submit', + method: 'post', + data, + }) +} +// 保存数据 +export function sourceSave(data: object) { + return request({ + url: `${prefix}/supplier/save`, + method: 'post', + data, + }) +} +// 更新数据 +export function getSoucreLisUpdate(data: object) { + return request({ + url: `${prefix}/supplier/update`, + method: 'post', + data, + }) +} + +// 导出详情 +export function getSoucreLisListExport(data: object) { + return request({ + url: `${prefix}/supplier/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 溯源供方审批接口 +export function getapprovalListPage(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/supplier/approval/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} diff --git a/src/api/system/source.ts b/src/api/system/source.ts deleted file mode 100644 index 93f5f12..0000000 --- a/src/api/system/source.ts +++ /dev/null @@ -1,76 +0,0 @@ -/** - * 溯源供方请求接口 - */ -import request from '../index' -const prefix = '/meter' - -// 列表查询 -export function getSoucreList(data: object) { - return request({ - url: `${prefix}/supplier/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 数据删除 -export function getSoucreListDelete(data: object) { - return request({ - url: `${prefix}/supplier/delete`, - method: 'post', - data, - }) -} - -// 查看详情 -export function getSoucreListDetail(data: object) { - return request({ - url: `${prefix}/supplier/detail`, - method: 'post', - data, - }) -} - -// 省级联动 -export function getSoucreListlevelType(pid: string) { - return request({ - url: `/sys/area/list?pid=${pid}`, - method: 'get', - }) -} - -// 新增数据 -export function getSoucreListAdd(data: object) { - return request({ - url: `${prefix}/supplier/add`, - method: 'post', - data, - }) -} -// 更新数据 -export function getSoucreLisUpdate(data: object) { - return request({ - url: `${prefix}/supplier/update`, - method: 'post', - data, - }) -} - -// 导出详情 -export function getSoucreLisListExport(data: object) { - return request({ - url: `${prefix}/supplier/listExport`, - method: 'post', - responseType: 'blob', - data, - }) -} - -// 溯源供方审批接口 -export function getapprovalListPage(data: object) { - return request({ - url: `${prefix}/supplier/approval/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} diff --git a/src/components.d.ts b/src/components.d.ts index 280906e..d419887 100644 --- a/src/components.d.ts +++ b/src/components.d.ts @@ -55,7 +55,6 @@ SelectEmployeesDialog: typeof import('./components/dialog/selectEmployeesDialog.vue')['default'] SelectResult: typeof import('./components/workFlow/selectResult.vue')['default'] SelectRoleDialog: typeof import('./components/dialog/selectRoleDialog.vue')['default'] - SelectTree: typeof import('./components/SelectTree/index.vue')['default'] SvgIcon: typeof import('./components/SvgIcon/index.vue')['default'] SystemInfo: typeof import('./components/SystemInfo/index.vue')['default'] TableContainer: typeof import('./components/TableContainer/index.vue')['default'] diff --git a/src/router/modules/measure.ts b/src/router/modules/measure.ts index f114ca2..73a7470 100644 --- a/src/router/modules/measure.ts +++ b/src/router/modules/measure.ts @@ -423,7 +423,7 @@ { path: 'approve/:type/:id?', name: 'ListpageSourceAdd', - component: () => import('@/views/measure/source/components/listPageAdd.vue'), + component: () => import('@/views/measure/source/components/sourceApprovalDetail.vue'), meta: { title: '溯源供方审批', icon: 'ep:key', diff --git a/src/store/modules/dict.ts b/src/store/modules/dict.ts index 7de3b8b..0719c75 100644 --- a/src/store/modules/dict.ts +++ b/src/store/modules/dict.ts @@ -6,6 +6,15 @@ state: () => ({ allDeptList: [] as DeptTreeNode[], // 所有部门列表 companyList: [] as DeptTreeNode[], // 公司列表 + approvalStatusList: { + 全部: '0', + 草稿箱: '1', + 待审批: '2', + 审批中: '3', + 已通过: '4', + 未通过: '5', + 已取消: '6', + }, // 审批状态 }), getters: { getAllDeptList: (state) => { @@ -14,6 +23,9 @@ getCompanyList: (state) => { return state.companyList }, + getApprovalStatus: (state) => { + return state.approvalStatusList + }, }, actions: { setAllDeptList(list: DeptTreeNode[]) { diff --git a/src/utils/scheduleDict.ts b/src/utils/scheduleDict.ts index 21d3721..9db0c6b 100644 --- a/src/utils/scheduleDict.ts +++ b/src/utils/scheduleDict.ts @@ -2,19 +2,19 @@ * 流程字典, 流程代号:流程id */ export enum SCHEDULE { - FILE_APPROVAL = '1', // 文件审批, - TRAIN_APPROVAL = '2', // 培训计划审批 - SUPPLIER_APPROVAL = '3', // 溯源供方审批 - STANDARD_CHANGE_APPROVAL = '4', // 标准装置更换申请 - STANDARD_PAUSE_APPROVAL = '5', // 标准装置暂停申请 - STANDARD_REVERT_APPROVAL = '6', // 标准装置撤销申请 - STANDARD_RESUME_APPROVAL = '7', // 标准装置恢复申请 - STANDARD_CHECK_APPROVAL = '8', // 标准装置复查申请 - DEVICE_UNUSED_APPROVAL = '9', // 设备闲置申请 - DEVICE_SEALED_APPROVAL = '10', // 设备封存申请 - DEVICE_UNSEALED_APPROVAL = '11', // 设备启封申请 - DEVICE_SCRAPPED_ROVAL = '12', // 设备报废申请 - DEVICE_HANDLE_APPROVAL = '13', // 设备处置申请 - DEVICE_CONSUMING_APPROVAL = '14', // 设备领用申请 - DEVICE_BORROW_APPROVAL = '15', // 设备借用申请 + FILE_APPROVAL = 'jlglwjsp', // 文件审批, + TRAIN_APPROVAL = 'jlglpxjhsp', // 培训计划审批 + SUPPLIER_APPROVAL = 'jlglsygfsp', // 溯源供方审批 + STANDARD_CHANGE_APPROVAL = 'sbglbzzzghsq', // 标准装置更换申请 + STANDARD_PAUSE_APPROVAL = 'sbglbzzzghsq', // 标准装置暂停申请 + STANDARD_REVERT_APPROVAL = 'sbglbzzzghsq', // 标准装置撤销申请 + STANDARD_RESUME_APPROVAL = 'sbglbzzzghsq', // 标准装置恢复申请 + STANDARD_CHECK_APPROVAL = 'sbglbzzzfcsq', // 标准装置复查申请 + DEVICE_UNUSED_APPROVAL = 'sbglsbxzsq', // 设备闲置申请 + DEVICE_SEALED_APPROVAL = 'sbglsbfcsq', // 设备封存申请 + DEVICE_UNSEALED_APPROVAL = 'sbglsbqfsq', // 设备启封申请 + DEVICE_SCRAPPED_ROVAL = 'sbglsbbfsq', // 设备报废申请 + DEVICE_HANDLE_APPROVAL = 'sbglsbczsq', // 设备处置申请 + DEVICE_CONSUMING_APPROVAL = 'sbglsblysq', // 设备领用申请 + DEVICE_BORROW_APPROVAL = 'sbglsbjysq', // 设备借用申请 } diff --git a/src/views/measure/source/approve.vue b/src/views/measure/source/approve.vue index 6227626..9ac8eea 100644 --- a/src/views/measure/source/approve.vue +++ b/src/views/measure/source/approve.vue @@ -1,52 +1,88 @@ - @@ -55,8 +91,8 @@ position: relative; .btns { - position: fixed; - top: 76px; + position: absolute; + top: -41px; right: 15px; z-index: 999; } diff --git a/src/views/measure/source/components/all.vue b/src/views/measure/source/components/all.vue deleted file mode 100644 index d124307..0000000 --- a/src/views/measure/source/components/all.vue +++ /dev/null @@ -1,17 +0,0 @@ - - - - diff --git a/src/views/measure/source/components/approvalPending.vue b/src/views/measure/source/components/approvalPending.vue deleted file mode 100644 index 8a7a8bc..0000000 --- a/src/views/measure/source/components/approvalPending.vue +++ /dev/null @@ -1,16 +0,0 @@ - - - - diff --git a/src/views/measure/source/components/canceled.vue b/src/views/measure/source/components/canceled.vue deleted file mode 100644 index 3b9657c..0000000 --- a/src/views/measure/source/components/canceled.vue +++ /dev/null @@ -1,15 +0,0 @@ - - - - diff --git a/src/views/measure/source/components/draftBox.vue b/src/views/measure/source/components/draftBox.vue deleted file mode 100644 index 43d7b75..0000000 --- a/src/views/measure/source/components/draftBox.vue +++ /dev/null @@ -1,15 +0,0 @@ - - - - diff --git a/src/views/measure/source/components/examineAndApprove.vue b/src/views/measure/source/components/examineAndApprove.vue deleted file mode 100644 index c13f95a..0000000 --- a/src/views/measure/source/components/examineAndApprove.vue +++ /dev/null @@ -1,17 +0,0 @@ - - - - diff --git a/src/views/measure/source/components/listApproval.vue b/src/views/measure/source/components/listApproval.vue new file mode 100644 index 0000000..3880028 --- /dev/null +++ b/src/views/measure/source/components/listApproval.vue @@ -0,0 +1,332 @@ + + + + diff --git a/src/views/measure/source/components/listPage.vue b/src/views/measure/source/components/listPage.vue deleted file mode 100644 index 31fb09f..0000000 --- a/src/views/measure/source/components/listPage.vue +++ /dev/null @@ -1,372 +0,0 @@ - - - - diff --git a/src/views/measure/source/components/listPageAdd.vue b/src/views/measure/source/components/listPageAdd.vue deleted file mode 100644 index 289b3e4..0000000 --- a/src/views/measure/source/components/listPageAdd.vue +++ /dev/null @@ -1,729 +0,0 @@ - - - - - diff --git a/src/views/measure/source/components/manageBox.vue b/src/views/measure/source/components/manageBox.vue deleted file mode 100644 index c5ced8f..0000000 --- a/src/views/measure/source/components/manageBox.vue +++ /dev/null @@ -1,99 +0,0 @@ - - - diff --git a/src/views/measure/source/components/notPass.vue b/src/views/measure/source/components/notPass.vue deleted file mode 100644 index 5a4b817..0000000 --- a/src/views/measure/source/components/notPass.vue +++ /dev/null @@ -1,10 +0,0 @@ - - - - diff --git a/src/views/measure/source/components/passed.vue b/src/views/measure/source/components/passed.vue deleted file mode 100644 index 31cd21c..0000000 --- a/src/views/measure/source/components/passed.vue +++ /dev/null @@ -1,10 +0,0 @@ - - - - diff --git a/src/views/measure/source/components/sourceApprovalDetail.vue b/src/views/measure/source/components/sourceApprovalDetail.vue new file mode 100644 index 0000000..28cd56c --- /dev/null +++ b/src/views/measure/source/components/sourceApprovalDetail.vue @@ -0,0 +1,621 @@ + + + + + diff --git a/src/api/measure/source.ts b/src/api/measure/source.ts new file mode 100644 index 0000000..1b8bf27 --- /dev/null +++ b/src/api/measure/source.ts @@ -0,0 +1,84 @@ +/** + * 溯源供方请求接口 + */ +import request from '../index' +const prefix = '/meter' + +// 列表查询 +export function getSoucreList(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/supplier/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function getSoucreListDelete(data: object) { + return request({ + url: `${prefix}/supplier/delete`, + method: 'post', + data, + }) +} + +// 查看详情 +export function getSoucreListDetail(data: object) { + return request({ + url: `${prefix}/supplier/detail`, + method: 'post', + data, + }) +} + +// 省级联动 +export function getSoucreListlevelType(pid: string) { + return request({ + url: `/sys/area/list?pid=${pid}`, + method: 'get', + }) +} + +// 提交数据 +export function sourceSubmit(data: object) { + return request({ + url: '/meter/supplier/submit', + method: 'post', + data, + }) +} +// 保存数据 +export function sourceSave(data: object) { + return request({ + url: `${prefix}/supplier/save`, + method: 'post', + data, + }) +} +// 更新数据 +export function getSoucreLisUpdate(data: object) { + return request({ + url: `${prefix}/supplier/update`, + method: 'post', + data, + }) +} + +// 导出详情 +export function getSoucreLisListExport(data: object) { + return request({ + url: `${prefix}/supplier/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + +// 溯源供方审批接口 +export function getapprovalListPage(data: { offset: number; limit: number }) { + return request({ + url: `${prefix}/supplier/approval/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} diff --git a/src/api/system/source.ts b/src/api/system/source.ts deleted file mode 100644 index 93f5f12..0000000 --- a/src/api/system/source.ts +++ /dev/null @@ -1,76 +0,0 @@ -/** - * 溯源供方请求接口 - */ -import request from '../index' -const prefix = '/meter' - -// 列表查询 -export function getSoucreList(data: object) { - return request({ - url: `${prefix}/supplier/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} - -// 数据删除 -export function getSoucreListDelete(data: object) { - return request({ - url: `${prefix}/supplier/delete`, - method: 'post', - data, - }) -} - -// 查看详情 -export function getSoucreListDetail(data: object) { - return request({ - url: `${prefix}/supplier/detail`, - method: 'post', - data, - }) -} - -// 省级联动 -export function getSoucreListlevelType(pid: string) { - return request({ - url: `/sys/area/list?pid=${pid}`, - method: 'get', - }) -} - -// 新增数据 -export function getSoucreListAdd(data: object) { - return request({ - url: `${prefix}/supplier/add`, - method: 'post', - data, - }) -} -// 更新数据 -export function getSoucreLisUpdate(data: object) { - return request({ - url: `${prefix}/supplier/update`, - method: 'post', - data, - }) -} - -// 导出详情 -export function getSoucreLisListExport(data: object) { - return request({ - url: `${prefix}/supplier/listExport`, - method: 'post', - responseType: 'blob', - data, - }) -} - -// 溯源供方审批接口 -export function getapprovalListPage(data: object) { - return request({ - url: `${prefix}/supplier/approval/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'post', - data, - }) -} diff --git a/src/components.d.ts b/src/components.d.ts index 280906e..d419887 100644 --- a/src/components.d.ts +++ b/src/components.d.ts @@ -55,7 +55,6 @@ SelectEmployeesDialog: typeof import('./components/dialog/selectEmployeesDialog.vue')['default'] SelectResult: typeof import('./components/workFlow/selectResult.vue')['default'] SelectRoleDialog: typeof import('./components/dialog/selectRoleDialog.vue')['default'] - SelectTree: typeof import('./components/SelectTree/index.vue')['default'] SvgIcon: typeof import('./components/SvgIcon/index.vue')['default'] SystemInfo: typeof import('./components/SystemInfo/index.vue')['default'] TableContainer: typeof import('./components/TableContainer/index.vue')['default'] diff --git a/src/router/modules/measure.ts b/src/router/modules/measure.ts index f114ca2..73a7470 100644 --- a/src/router/modules/measure.ts +++ b/src/router/modules/measure.ts @@ -423,7 +423,7 @@ { path: 'approve/:type/:id?', name: 'ListpageSourceAdd', - component: () => import('@/views/measure/source/components/listPageAdd.vue'), + component: () => import('@/views/measure/source/components/sourceApprovalDetail.vue'), meta: { title: '溯源供方审批', icon: 'ep:key', diff --git a/src/store/modules/dict.ts b/src/store/modules/dict.ts index 7de3b8b..0719c75 100644 --- a/src/store/modules/dict.ts +++ b/src/store/modules/dict.ts @@ -6,6 +6,15 @@ state: () => ({ allDeptList: [] as DeptTreeNode[], // 所有部门列表 companyList: [] as DeptTreeNode[], // 公司列表 + approvalStatusList: { + 全部: '0', + 草稿箱: '1', + 待审批: '2', + 审批中: '3', + 已通过: '4', + 未通过: '5', + 已取消: '6', + }, // 审批状态 }), getters: { getAllDeptList: (state) => { @@ -14,6 +23,9 @@ getCompanyList: (state) => { return state.companyList }, + getApprovalStatus: (state) => { + return state.approvalStatusList + }, }, actions: { setAllDeptList(list: DeptTreeNode[]) { diff --git a/src/utils/scheduleDict.ts b/src/utils/scheduleDict.ts index 21d3721..9db0c6b 100644 --- a/src/utils/scheduleDict.ts +++ b/src/utils/scheduleDict.ts @@ -2,19 +2,19 @@ * 流程字典, 流程代号:流程id */ export enum SCHEDULE { - FILE_APPROVAL = '1', // 文件审批, - TRAIN_APPROVAL = '2', // 培训计划审批 - SUPPLIER_APPROVAL = '3', // 溯源供方审批 - STANDARD_CHANGE_APPROVAL = '4', // 标准装置更换申请 - STANDARD_PAUSE_APPROVAL = '5', // 标准装置暂停申请 - STANDARD_REVERT_APPROVAL = '6', // 标准装置撤销申请 - STANDARD_RESUME_APPROVAL = '7', // 标准装置恢复申请 - STANDARD_CHECK_APPROVAL = '8', // 标准装置复查申请 - DEVICE_UNUSED_APPROVAL = '9', // 设备闲置申请 - DEVICE_SEALED_APPROVAL = '10', // 设备封存申请 - DEVICE_UNSEALED_APPROVAL = '11', // 设备启封申请 - DEVICE_SCRAPPED_ROVAL = '12', // 设备报废申请 - DEVICE_HANDLE_APPROVAL = '13', // 设备处置申请 - DEVICE_CONSUMING_APPROVAL = '14', // 设备领用申请 - DEVICE_BORROW_APPROVAL = '15', // 设备借用申请 + FILE_APPROVAL = 'jlglwjsp', // 文件审批, + TRAIN_APPROVAL = 'jlglpxjhsp', // 培训计划审批 + SUPPLIER_APPROVAL = 'jlglsygfsp', // 溯源供方审批 + STANDARD_CHANGE_APPROVAL = 'sbglbzzzghsq', // 标准装置更换申请 + STANDARD_PAUSE_APPROVAL = 'sbglbzzzghsq', // 标准装置暂停申请 + STANDARD_REVERT_APPROVAL = 'sbglbzzzghsq', // 标准装置撤销申请 + STANDARD_RESUME_APPROVAL = 'sbglbzzzghsq', // 标准装置恢复申请 + STANDARD_CHECK_APPROVAL = 'sbglbzzzfcsq', // 标准装置复查申请 + DEVICE_UNUSED_APPROVAL = 'sbglsbxzsq', // 设备闲置申请 + DEVICE_SEALED_APPROVAL = 'sbglsbfcsq', // 设备封存申请 + DEVICE_UNSEALED_APPROVAL = 'sbglsbqfsq', // 设备启封申请 + DEVICE_SCRAPPED_ROVAL = 'sbglsbbfsq', // 设备报废申请 + DEVICE_HANDLE_APPROVAL = 'sbglsbczsq', // 设备处置申请 + DEVICE_CONSUMING_APPROVAL = 'sbglsblysq', // 设备领用申请 + DEVICE_BORROW_APPROVAL = 'sbglsbjysq', // 设备借用申请 } diff --git a/src/views/measure/source/approve.vue b/src/views/measure/source/approve.vue index 6227626..9ac8eea 100644 --- a/src/views/measure/source/approve.vue +++ b/src/views/measure/source/approve.vue @@ -1,52 +1,88 @@ - @@ -55,8 +91,8 @@ position: relative; .btns { - position: fixed; - top: 76px; + position: absolute; + top: -41px; right: 15px; z-index: 999; } diff --git a/src/views/measure/source/components/all.vue b/src/views/measure/source/components/all.vue deleted file mode 100644 index d124307..0000000 --- a/src/views/measure/source/components/all.vue +++ /dev/null @@ -1,17 +0,0 @@ - - - - diff --git a/src/views/measure/source/components/approvalPending.vue b/src/views/measure/source/components/approvalPending.vue deleted file mode 100644 index 8a7a8bc..0000000 --- a/src/views/measure/source/components/approvalPending.vue +++ /dev/null @@ -1,16 +0,0 @@ - - - - diff --git a/src/views/measure/source/components/canceled.vue b/src/views/measure/source/components/canceled.vue deleted file mode 100644 index 3b9657c..0000000 --- a/src/views/measure/source/components/canceled.vue +++ /dev/null @@ -1,15 +0,0 @@ - - - - diff --git a/src/views/measure/source/components/draftBox.vue b/src/views/measure/source/components/draftBox.vue deleted file mode 100644 index 43d7b75..0000000 --- a/src/views/measure/source/components/draftBox.vue +++ /dev/null @@ -1,15 +0,0 @@ - - - - diff --git a/src/views/measure/source/components/examineAndApprove.vue b/src/views/measure/source/components/examineAndApprove.vue deleted file mode 100644 index c13f95a..0000000 --- a/src/views/measure/source/components/examineAndApprove.vue +++ /dev/null @@ -1,17 +0,0 @@ - - - - diff --git a/src/views/measure/source/components/listApproval.vue b/src/views/measure/source/components/listApproval.vue new file mode 100644 index 0000000..3880028 --- /dev/null +++ b/src/views/measure/source/components/listApproval.vue @@ -0,0 +1,332 @@ + + + + diff --git a/src/views/measure/source/components/listPage.vue b/src/views/measure/source/components/listPage.vue deleted file mode 100644 index 31fb09f..0000000 --- a/src/views/measure/source/components/listPage.vue +++ /dev/null @@ -1,372 +0,0 @@ - - - - diff --git a/src/views/measure/source/components/listPageAdd.vue b/src/views/measure/source/components/listPageAdd.vue deleted file mode 100644 index 289b3e4..0000000 --- a/src/views/measure/source/components/listPageAdd.vue +++ /dev/null @@ -1,729 +0,0 @@ - - - - - diff --git a/src/views/measure/source/components/manageBox.vue b/src/views/measure/source/components/manageBox.vue deleted file mode 100644 index c5ced8f..0000000 --- a/src/views/measure/source/components/manageBox.vue +++ /dev/null @@ -1,99 +0,0 @@ - - - diff --git a/src/views/measure/source/components/notPass.vue b/src/views/measure/source/components/notPass.vue deleted file mode 100644 index 5a4b817..0000000 --- a/src/views/measure/source/components/notPass.vue +++ /dev/null @@ -1,10 +0,0 @@ - - - - diff --git a/src/views/measure/source/components/passed.vue b/src/views/measure/source/components/passed.vue deleted file mode 100644 index 31cd21c..0000000 --- a/src/views/measure/source/components/passed.vue +++ /dev/null @@ -1,10 +0,0 @@ - - - - diff --git a/src/views/measure/source/components/sourceApprovalDetail.vue b/src/views/measure/source/components/sourceApprovalDetail.vue new file mode 100644 index 0000000..28cd56c --- /dev/null +++ b/src/views/measure/source/components/sourceApprovalDetail.vue @@ -0,0 +1,621 @@ + + + + + diff --git a/src/views/measure/source/list.vue b/src/views/measure/source/list.vue index fe9cf57..c7bd2f1 100644 --- a/src/views/measure/source/list.vue +++ b/src/views/measure/source/list.vue @@ -3,7 +3,8 @@ import type { Ref } from 'vue' import { ElLoading, ElMessage, ElMessageBox } from 'element-plus' import type { IlistQuery, IlistType } from './list_interface' -import { getSoucreList, getSoucreListDelete } from '@/api/system/source' +import type { TableColumn } from '@/components/NormalTable/table_interface' +import { getSoucreList, getSoucreListDelete } from '@/api/measure/source' import { uploadApi } from '@/api/system/notice' import { exportExcel } from '@/utils/exportXlsx' // 查询条件 @@ -22,7 +23,7 @@ // 总数 const total = ref(0) // 表头 -const columns = ref([ +const columns = ref([ { text: '溯源供方编号', value: 'supplierNo', @@ -64,7 +65,7 @@ text: '创建时间', value: 'createTime', align: 'center', - width: '200', + width: '180', }, { text: '备注', @@ -74,7 +75,7 @@ ]) // 选中的内容 -const checkoutList = ref([]) +const checkoutList = ref([]) // 文件上传input const fileRef = ref() // 删除id @@ -99,7 +100,7 @@ fetchData(true) // 多选发生改变时 const handleSelectionChange = (e: any) => { - checkoutList.value = e + checkoutList.value = e.map((item: { id: string }) => item.id) } // 点击编辑id和删除row类型 interface rowReturn { @@ -159,20 +160,20 @@ background: 'rgba(255, 255, 255, 0.8)', }) if (checkoutList.value.length <= 0 && list.value.length > 0) { - exportExcel({ - json: list.value.map((item: IlistType, index: number) => ({ index: index + 1, supplierNo: item.supplierNo, supplierName: item.supplierName, businessContent: item.businessContent, briefName: item.briefName, director: item.director, mobile: item.mobile, companyCity: item.companyCity, createTime: item.createTime, remark: item.remark })), - name: '溯源供方', - titleArr: ['序号', '溯源供方编号', '溯源供方名称', '业务内容', '业务资质', '负责人', '联系方式', '地址', '创建时间', '备注'], - sheetName: 'sheet1', - }) - } - else if (checkoutList.value.length > 0) { - exportExcel({ - json: checkoutList.value.map((item: IlistType, index: number) => ({ index: index + 1, supplierNo: item.supplierNo, supplierName: item.supplierName, businessContent: item.businessContent, briefName: item.briefName, director: item.director, mobile: item.mobile, companyCity: item.companyCity, createTime: item.createTime, remark: item.remark })), - name: '溯源供方', - titleArr: ['序号', '溯源供方编号', '溯源供方名称', '业务内容', '业务资质', '负责人', '联系方式', '地址', '创建时间', '备注'], - sheetName: 'sheet1', - }) + // exportExcel({ + // json: list.value.map((item: IlistType, index: number) => ({ index: index + 1, supplierNo: item.supplierNo, supplierName: item.supplierName, businessContent: item.businessContent, briefName: item.briefName, director: item.director, mobile: item.mobile, companyCity: item.companyCity, createTime: item.createTime, remark: item.remark })), + // name: '溯源供方', + // titleArr: ['序号', '溯源供方编号', '溯源供方名称', '业务内容', '业务资质', '负责人', '联系方式', '地址', '创建时间', '备注'], + // sheetName: 'sheet1', + // }) + // } + // else if (checkoutList.value.length > 0) { + // exportExcel({ + // json: checkoutList.value.map((item: IlistType, index: number) => ({ index: index + 1, supplierNo: item.supplierNo, supplierName: item.supplierName, businessContent: item.businessContent, briefName: item.briefName, director: item.director, mobile: item.mobile, companyCity: item.companyCity, createTime: item.createTime, remark: item.remark })), + // name: '溯源供方', + // titleArr: ['序号', '溯源供方编号', '溯源供方名称', '业务内容', '业务资质', '负责人', '联系方式', '地址', '创建时间', '备注'], + // sheetName: 'sheet1', + // }) } else { ElMessage.warning('暂无数据') @@ -276,7 +277,7 @@ :list-loading="loadingTable" is-showmulti-select @change="changePage" @multiSelect="handleSelectionChange" >