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 @@ - - - - + + + {{ item.name }} - + @@ -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 @@ - - - - + + + {{ item.name }} - + @@ -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 @@ - - - - + + + {{ item.name }} - + @@ -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 @@ - - - - + + + {{ item.name }} - + @@ -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 @@ - - - - + + + {{ item.name }} - + @@ -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 @@ - - - - + + + {{ item.name }} - + @@ -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 @@ - - - - + + + {{ item.name }} - + @@ -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 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + {{ item.name }} + + + + + + + + + + + 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 @@ - - - - + + + {{ item.name }} - + @@ -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 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + {{ item.name }} + + + + + + + + + + + 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 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - {{ item.name }} - - - - - - - - - - - - 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 @@ - - - - + + + {{ item.name }} - + @@ -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 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + {{ item.name }} + + + + + + + + + + + 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 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - {{ item.name }} - - - - - - - - - - - - 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 @@ - - - - - - - - {{ item }} - - - 关闭 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - {{ formInline.minioFileName === null ? '上传' : '更换附件' }} - - - - - - - - - - 删除行 - - - 增加行 - - - - - - - - *{{ item.text }} - - - {{ scope.row[item.value] }} - - - - - - - - - - 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 @@ - - - - + + + {{ item.name }} - + @@ -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 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + {{ item.name }} + + + + + + + + + + + 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 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - {{ item.name }} - - - - - - - - - - - - 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 @@ - - - - - - - - {{ item }} - - - 关闭 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - {{ formInline.minioFileName === null ? '上传' : '更换附件' }} - - - - - - - - - - 删除行 - - - 增加行 - - - - - - - - *{{ item.text }} - - - {{ scope.row[item.value] }} - - - - - - - - - - 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 @@ - - - - + + + {{ item.name }} - + @@ -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 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + {{ item.name }} + + + + + + + + + + + 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 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - {{ item.name }} - - - - - - - - - - - - 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 @@ - - - - - - - - {{ item }} - - - 关闭 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - {{ formInline.minioFileName === null ? '上传' : '更换附件' }} - - - - - - - - - - 删除行 - - - 增加行 - - - - - - - - *{{ item.text }} - - - {{ scope.row[item.value] }} - - - - - - - - - - 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 @@ - - - - + + + {{ item.name }} - + @@ -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 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + {{ item.name }} + + + + + + + + + + + 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 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - {{ item.name }} - - - - - - - - - - - - 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 @@ - - - - - - - - {{ item }} - - - 关闭 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - {{ formInline.minioFileName === null ? '上传' : '更换附件' }} - - - - - - - - - - 删除行 - - - 增加行 - - - - - - - - *{{ item.text }} - - - {{ scope.row[item.value] }} - - - - - - - - - - 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 @@ - - - - + + + {{ item.name }} - + @@ -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 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + {{ item.name }} + + + + + + + + + + + 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 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - {{ item.name }} - - - - - - - - - - - - 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 @@ - - - - - - - - {{ item }} - - - 关闭 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - {{ formInline.minioFileName === null ? '上传' : '更换附件' }} - - - - - - - - - - 删除行 - - - 增加行 - - - - - - - - *{{ item.text }} - - - {{ scope.row[item.value] }} - - - - - - - - - - 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 @@ + + + + + + + + {{ item }} + + + 关闭 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 无 + + + + + + + + + + + 审批人:{{ activity.name }} 审批意见:{{ activity.content }} + + + + + + + + + + {{ scope.row[item.value] }} + + + + + + + + + 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 @@ - - - - + + + {{ item.name }} - + @@ -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 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + {{ item.name }} + + + + + + + + + + + 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 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - {{ item.name }} - - - - - - - - - - - - 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 @@ - - - - - - - - {{ item }} - - - 关闭 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - {{ formInline.minioFileName === null ? '上传' : '更换附件' }} - - - - - - - - - - 删除行 - - - 增加行 - - - - - - - - *{{ item.text }} - - - {{ scope.row[item.value] }} - - - - - - - - - - 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 @@ + + + + + + + + {{ item }} + + + 关闭 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 无 + + + + + + + + + + + 审批人:{{ activity.name }} 审批意见:{{ activity.content }} + + + + + + + + + + {{ scope.row[item.value] }} + + + + + + + + + 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" > - + 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 @@ - - - - + + + {{ item.name }} - + @@ -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 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + {{ item.name }} + + + + + + + + + + + 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 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - {{ item.name }} - - - - - - - - - - - - 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 @@ - - - - - - - - {{ item }} - - - 关闭 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - {{ formInline.minioFileName === null ? '上传' : '更换附件' }} - - - - - - - - - - 删除行 - - - 增加行 - - - - - - - - *{{ item.text }} - - - {{ scope.row[item.value] }} - - - - - - - - - - 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 @@ + + + + + + + + {{ item }} + + + 关闭 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 无 + + + + + + + + + + + 审批人:{{ activity.name }} 审批意见:{{ activity.content }} + + + + + + + + + + {{ scope.row[item.value] }} + + + + + + + + + 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" > - + = ref({ +const formInline: Ref = ref({ id: '', businessContent: '', supplierName: '', @@ -43,7 +44,6 @@ companyCity: '', companyCountry: '', companyProvince: '', - createTime: '', director: '', fax: '', invoiceAddress: '', @@ -91,7 +91,6 @@ const SelectionList: Ref = ref([]) // 校验规则 const rules = ref({ - supplierNo: [{ required: true, message: '溯源供方编号不能为空', trigger: 'blur' }], supplierName: [{ required: true, message: '公司名称不能为空', trigger: 'blur' }], businessContent: [{ required: true, message: '业务内容不能为空', trigger: 'blur' }], taxNumber: [{ required: true, message: '税号不能为空', trigger: 'blur' }], @@ -203,48 +202,59 @@ }) } // 点击提交/导出按钮 -const getAddList = async (formEl: FormInstance | undefined, type: string) => { +function exportForm() { + const params = { + businessContent: formInline.value.businessContent, + supplierName: formInline.value.supplierName, + supplierNo: formInline.value.supplierNo, + } + getSoucreLisListExport(params).then((res) => { + exportFile(res.data, '溯源供方详情') + }) +} + +// 保存至草稿箱 +function saveForm(formEl: FormInstance | undefined) { if (!formEl) { return } - await formEl.validate((valid, fields) => { + formEl.validate((valid, fields) => { if (valid) { ElMessageBox.confirm( - `确认${type}吗?`, - '提示', - { - confirmButtonText: '确认', - cancelButtonText: '取消', - type: 'warning', - }, + '确认保存吗?', + '提示', + { + confirmButtonText: '确认', + cancelButtonText: '取消', + type: 'warning', + }, ).then(() => { - if (type === '提交' && pageType.value !== 'edit') { - getSoucreListAdd(formInline.value).then((res) => { - if (res.code === 200) { - close() - } - }) - } - else if (type === '提交' && pageType.value === 'edit') { - formInline.value.id = infoId.value - getSoucreLisUpdate(formInline.value).then((res) => { - if (res.code === 200) { - close() - } - }) - } - else { - const params = { - businessContent: formInline.value.businessContent, - supplierName: formInline.value.supplierName, - supplierNo: formInline.value.supplierNo, + sourceSave(formInline.value).then((res) => { + if (res.code === 200) { + formInline.value.id = res.data.id + formInline.value.supplierNo = res.data.supplierNo + ElMessage.success('已保存') } - getSoucreLisListExport(params).then((res) => { - exportFile(res.data, '溯源供方详情') - }) - } + }) }) } }) } + +// 提交表单 +function submitForm() { + if (formInline.value.id) { + const params = { + id: formInline.value.id, + formId: SCHEDULE.SUPPLIER_APPROVAL, // 表单id + } + sourceSubmit(params).then((res) => { + ElMessage.success('提交成功') + close() + }) + } + else { + ElMessage.info('请先保存再提交!') + } +} const isShow = ref(false) const testForm = ref({ fileList: [], @@ -293,13 +303,14 @@ - - {{ pageType === 'detail' ? '导出' : '提交' }} + + 导出 + + + 提交 + + + 保存 关闭 @@ -319,9 +330,9 @@ 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 @@ - - - - + + + {{ item.name }} - + @@ -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 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + {{ item.name }} + + + + + + + + + + + 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 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - {{ item.name }} - - - - - - - - - - - - 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 @@ - - - - - - - - {{ item }} - - - 关闭 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - {{ formInline.minioFileName === null ? '上传' : '更换附件' }} - - - - - - - - - - 删除行 - - - 增加行 - - - - - - - - *{{ item.text }} - - - {{ scope.row[item.value] }} - - - - - - - - - - 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 @@ + + + + + + + + {{ item }} + + + 关闭 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 无 + + + + + + + + + + + 审批人:{{ activity.name }} 审批意见:{{ activity.content }} + + + + + + + + + + {{ scope.row[item.value] }} + + + + + + + + + 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" > - + = ref({ +const formInline: Ref = ref({ id: '', businessContent: '', supplierName: '', @@ -43,7 +44,6 @@ companyCity: '', companyCountry: '', companyProvince: '', - createTime: '', director: '', fax: '', invoiceAddress: '', @@ -91,7 +91,6 @@ const SelectionList: Ref = ref([]) // 校验规则 const rules = ref({ - supplierNo: [{ required: true, message: '溯源供方编号不能为空', trigger: 'blur' }], supplierName: [{ required: true, message: '公司名称不能为空', trigger: 'blur' }], businessContent: [{ required: true, message: '业务内容不能为空', trigger: 'blur' }], taxNumber: [{ required: true, message: '税号不能为空', trigger: 'blur' }], @@ -203,48 +202,59 @@ }) } // 点击提交/导出按钮 -const getAddList = async (formEl: FormInstance | undefined, type: string) => { +function exportForm() { + const params = { + businessContent: formInline.value.businessContent, + supplierName: formInline.value.supplierName, + supplierNo: formInline.value.supplierNo, + } + getSoucreLisListExport(params).then((res) => { + exportFile(res.data, '溯源供方详情') + }) +} + +// 保存至草稿箱 +function saveForm(formEl: FormInstance | undefined) { if (!formEl) { return } - await formEl.validate((valid, fields) => { + formEl.validate((valid, fields) => { if (valid) { ElMessageBox.confirm( - `确认${type}吗?`, - '提示', - { - confirmButtonText: '确认', - cancelButtonText: '取消', - type: 'warning', - }, + '确认保存吗?', + '提示', + { + confirmButtonText: '确认', + cancelButtonText: '取消', + type: 'warning', + }, ).then(() => { - if (type === '提交' && pageType.value !== 'edit') { - getSoucreListAdd(formInline.value).then((res) => { - if (res.code === 200) { - close() - } - }) - } - else if (type === '提交' && pageType.value === 'edit') { - formInline.value.id = infoId.value - getSoucreLisUpdate(formInline.value).then((res) => { - if (res.code === 200) { - close() - } - }) - } - else { - const params = { - businessContent: formInline.value.businessContent, - supplierName: formInline.value.supplierName, - supplierNo: formInline.value.supplierNo, + sourceSave(formInline.value).then((res) => { + if (res.code === 200) { + formInline.value.id = res.data.id + formInline.value.supplierNo = res.data.supplierNo + ElMessage.success('已保存') } - getSoucreLisListExport(params).then((res) => { - exportFile(res.data, '溯源供方详情') - }) - } + }) }) } }) } + +// 提交表单 +function submitForm() { + if (formInline.value.id) { + const params = { + id: formInline.value.id, + formId: SCHEDULE.SUPPLIER_APPROVAL, // 表单id + } + sourceSubmit(params).then((res) => { + ElMessage.success('提交成功') + close() + }) + } + else { + ElMessage.info('请先保存再提交!') + } +} const isShow = ref(false) const testForm = ref({ fileList: [], @@ -293,13 +303,14 @@ - - {{ pageType === 'detail' ? '导出' : '提交' }} + + 导出 + + + 提交 + + + 保存 关闭 @@ -319,9 +330,9 @@ diff --git a/src/views/measure/source/list_interface.ts b/src/views/measure/source/list_interface.ts index 5dd7a20..54f4732 100644 --- a/src/views/measure/source/list_interface.ts +++ b/src/views/measure/source/list_interface.ts @@ -24,6 +24,17 @@ areaName: string } +export interface supplierExportQuery { + businessContent: string // 业务内容 + supplierName: string // 公司名称 + supplierNo: string // 溯源供方编号 + ids?: string[] // + approvalStatus?: string // 审批状态类型code + companyArea?: string // 公司地址-区 + companyCity?: string // 公司地址-市 + companyProvince?: string // 公司地址-省 + formId?: string // formId +} // 溯源供方人员 export interface traceSupplierPerson { id: number | string // id @@ -36,38 +47,42 @@ [key: string]: any } -export interface IformInline { - businessContent: string - supplierName: string - supplierNo: string - bankAccount: string - bankAccountNumber: string - bankName: string - briefName: string - businessScope: string - companyAddress: string - companyArea: string - companyCity: string - companyCountry: string - companyProvince: string - createTime: string - director: string - id: string - fax: string - invoiceAddress: string - invoiceArea: string - invoiceCity: string - invoiceCountry: string - invoiceProvince: string - mailbox: string - minioFileName: string - mobile: string - phone: string - postalCode: string - remark: string - taxNumber: string - website: string - traceSupplierPersonList: traceSupplierPerson [] +export interface ISupplier { + businessContent: string // 业务内容 + supplierName: string // 公司名称 + supplierNo: string // 溯源供方编号(列表、更新接口参数) + bankAccount: string // 银行账户名 + bankAccountNumber: string // 银行账号 + bankName: string // 银行名称 + briefName: string // 公司简称 + businessScope: string // 公司业务范围 + companyAddressBref?: string // 公司地址-拼接省市 + companyAddress: string // 公司地址-详细地址 + companyArea: string // 公司地址-区 + companyCity: string // 公司地址-市 + companyCountry: string // 公司地址-国家 + companyProvince: string // 公司地址-省 + createTime?: string // 创建时间 + director: string // 负责人 + id: string // 主键id(列表、更新接口参数) + fax: string // 传真 + invoiceAddress: string // 开票地址-详细地址 + invoiceArea: string // 开票地址-区 + invoiceCity: string // 开票地址-市 + invoiceCountry: string // 开票地址-国家 + invoiceProvince: string // 开票地址-省 + mailbox: string // 邮箱 + minioFileName: string // 上传文件返回名称 + mobile: string // 手机 + phone: string // 电话 + postalCode: string // 邮编 + remark: string // 备注 + taxNumber: string // 税号 + website: string // 网址 + traceSupplierPersonList: traceSupplierPerson [] | '' // 溯源供方人员列表 + taskId?: '' // 任务id, 流程审批用 + approvalStatus?: string // 审批状态 + approvalStatusName?: string // 审批状态名称 } export interface IlistTypes { @@ -83,3 +98,8 @@ limit: number } +export interface IButton { + name: string + type: '' | 'default' | 'text' | 'primary' | 'success' | 'warning' | 'info' | 'danger' + permission?: string +}