diff --git a/.eslintignore b/.eslintignore new file mode 100644 index 0000000..e96ae7e --- /dev/null +++ b/.eslintignore @@ -0,0 +1 @@ +/src/main.ts diff --git a/.eslintignore b/.eslintignore new file mode 100644 index 0000000..e96ae7e --- /dev/null +++ b/.eslintignore @@ -0,0 +1 @@ +/src/main.ts diff --git a/src/api/measure/file.ts b/src/api/measure/file.ts new file mode 100644 index 0000000..087460c --- /dev/null +++ b/src/api/measure/file.ts @@ -0,0 +1,55 @@ +// 计量文件模块接口api +import request from '../index' +import type { fileSearchType } from '@/views/measure/file/file-interface' +const prefix = 'meter/' +// 文件列表(分页) +export function listPageApi(data: fileSearchType) { + return request({ + url: `${prefix}file/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 详情 +export function listPageDetailApi(data: object) { + return request({ + url: `${prefix}file/listPage`, + method: 'post', + data, + }) +} +// 废止 +export function updateApi(data: object) { + return request({ + url: `${prefix}file/update`, + method: 'post', + data, + }) +} +// 新建 +export function addApi(data: object) { + return request({ + url: `${prefix}file/add`, + method: 'post', + data, + }) +} +// 删除 +export function deleteApi(data: { id: string }) { + return request({ + url: `${prefix}file/delete`, + method: 'post', + data, + }) +} +// 文件上传 +export function UploadFile(fileobj: any) { + const param = new FormData() + param.append('file', fileobj.file) + return request({ + url: 'file/uploadFile', + method: 'post', + headers: { 'Content-Type': 'multipart/form-data' }, + data: param, + }) +} diff --git a/.eslintignore b/.eslintignore new file mode 100644 index 0000000..e96ae7e --- /dev/null +++ b/.eslintignore @@ -0,0 +1 @@ +/src/main.ts diff --git a/src/api/measure/file.ts b/src/api/measure/file.ts new file mode 100644 index 0000000..087460c --- /dev/null +++ b/src/api/measure/file.ts @@ -0,0 +1,55 @@ +// 计量文件模块接口api +import request from '../index' +import type { fileSearchType } from '@/views/measure/file/file-interface' +const prefix = 'meter/' +// 文件列表(分页) +export function listPageApi(data: fileSearchType) { + return request({ + url: `${prefix}file/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 详情 +export function listPageDetailApi(data: object) { + return request({ + url: `${prefix}file/listPage`, + method: 'post', + data, + }) +} +// 废止 +export function updateApi(data: object) { + return request({ + url: `${prefix}file/update`, + method: 'post', + data, + }) +} +// 新建 +export function addApi(data: object) { + return request({ + url: `${prefix}file/add`, + method: 'post', + data, + }) +} +// 删除 +export function deleteApi(data: { id: string }) { + return request({ + url: `${prefix}file/delete`, + method: 'post', + data, + }) +} +// 文件上传 +export function UploadFile(fileobj: any) { + const param = new FormData() + param.append('file', fileobj.file) + return request({ + url: 'file/uploadFile', + method: 'post', + headers: { 'Content-Type': 'multipart/form-data' }, + data: param, + }) +} diff --git a/src/layouts/index.vue b/src/layouts/index.vue index 270f1bb..adfed29 100644 --- a/src/layouts/index.vue +++ b/src/layouts/index.vue @@ -59,15 +59,15 @@ - + - - + + - + @@ -77,14 +77,14 @@ - + - - - + + + @@ -182,7 +182,7 @@ height: 100%; flex: auto; position: relative; - overflow: hidden; + // overflow: hidden; transition: 0.3s; } diff --git a/.eslintignore b/.eslintignore new file mode 100644 index 0000000..e96ae7e --- /dev/null +++ b/.eslintignore @@ -0,0 +1 @@ +/src/main.ts diff --git a/src/api/measure/file.ts b/src/api/measure/file.ts new file mode 100644 index 0000000..087460c --- /dev/null +++ b/src/api/measure/file.ts @@ -0,0 +1,55 @@ +// 计量文件模块接口api +import request from '../index' +import type { fileSearchType } from '@/views/measure/file/file-interface' +const prefix = 'meter/' +// 文件列表(分页) +export function listPageApi(data: fileSearchType) { + return request({ + url: `${prefix}file/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 详情 +export function listPageDetailApi(data: object) { + return request({ + url: `${prefix}file/listPage`, + method: 'post', + data, + }) +} +// 废止 +export function updateApi(data: object) { + return request({ + url: `${prefix}file/update`, + method: 'post', + data, + }) +} +// 新建 +export function addApi(data: object) { + return request({ + url: `${prefix}file/add`, + method: 'post', + data, + }) +} +// 删除 +export function deleteApi(data: { id: string }) { + return request({ + url: `${prefix}file/delete`, + method: 'post', + data, + }) +} +// 文件上传 +export function UploadFile(fileobj: any) { + const param = new FormData() + param.append('file', fileobj.file) + return request({ + url: 'file/uploadFile', + method: 'post', + headers: { 'Content-Type': 'multipart/form-data' }, + data: param, + }) +} diff --git a/src/layouts/index.vue b/src/layouts/index.vue index 270f1bb..adfed29 100644 --- a/src/layouts/index.vue +++ b/src/layouts/index.vue @@ -59,15 +59,15 @@ - + - - + + - + @@ -77,14 +77,14 @@ - + - - - + + + @@ -182,7 +182,7 @@ height: 100%; flex: auto; position: relative; - overflow: hidden; + // overflow: hidden; transition: 0.3s; } diff --git a/src/main.ts b/src/main.ts index 50dbe9f..657d9f2 100644 --- a/src/main.ts +++ b/src/main.ts @@ -1,6 +1,6 @@ import { createApp } from 'vue' import ElementPlus from 'element-plus' -import { has } from 'lodash-es' +import print from 'vue3-print-nb' import App from './App.vue' import pinia from './store' import router from './router' @@ -15,13 +15,14 @@ // 加载 iconify 图标(element plus) import { downloadAndInstall } from '@/iconify-ep' import { hasPermission } from '@/utils/composables/permission' - +// 引入打印插件 if (useSettingsStore().app.iconifyOfflineUse) { downloadAndInstall() } const app = createApp(App) app.config.globalProperties.hasPerm = hasPermission +app.use(print) app.use(ElementPlus) app.use(pinia) app.use(router) diff --git a/.eslintignore b/.eslintignore new file mode 100644 index 0000000..e96ae7e --- /dev/null +++ b/.eslintignore @@ -0,0 +1 @@ +/src/main.ts diff --git a/src/api/measure/file.ts b/src/api/measure/file.ts new file mode 100644 index 0000000..087460c --- /dev/null +++ b/src/api/measure/file.ts @@ -0,0 +1,55 @@ +// 计量文件模块接口api +import request from '../index' +import type { fileSearchType } from '@/views/measure/file/file-interface' +const prefix = 'meter/' +// 文件列表(分页) +export function listPageApi(data: fileSearchType) { + return request({ + url: `${prefix}file/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 详情 +export function listPageDetailApi(data: object) { + return request({ + url: `${prefix}file/listPage`, + method: 'post', + data, + }) +} +// 废止 +export function updateApi(data: object) { + return request({ + url: `${prefix}file/update`, + method: 'post', + data, + }) +} +// 新建 +export function addApi(data: object) { + return request({ + url: `${prefix}file/add`, + method: 'post', + data, + }) +} +// 删除 +export function deleteApi(data: { id: string }) { + return request({ + url: `${prefix}file/delete`, + method: 'post', + data, + }) +} +// 文件上传 +export function UploadFile(fileobj: any) { + const param = new FormData() + param.append('file', fileobj.file) + return request({ + url: 'file/uploadFile', + method: 'post', + headers: { 'Content-Type': 'multipart/form-data' }, + data: param, + }) +} diff --git a/src/layouts/index.vue b/src/layouts/index.vue index 270f1bb..adfed29 100644 --- a/src/layouts/index.vue +++ b/src/layouts/index.vue @@ -59,15 +59,15 @@ - + - - + + - + @@ -77,14 +77,14 @@ - + - - - + + + @@ -182,7 +182,7 @@ height: 100%; flex: auto; position: relative; - overflow: hidden; + // overflow: hidden; transition: 0.3s; } diff --git a/src/main.ts b/src/main.ts index 50dbe9f..657d9f2 100644 --- a/src/main.ts +++ b/src/main.ts @@ -1,6 +1,6 @@ import { createApp } from 'vue' import ElementPlus from 'element-plus' -import { has } from 'lodash-es' +import print from 'vue3-print-nb' import App from './App.vue' import pinia from './store' import router from './router' @@ -15,13 +15,14 @@ // 加载 iconify 图标(element plus) import { downloadAndInstall } from '@/iconify-ep' import { hasPermission } from '@/utils/composables/permission' - +// 引入打印插件 if (useSettingsStore().app.iconifyOfflineUse) { downloadAndInstall() } const app = createApp(App) app.config.globalProperties.hasPerm = hasPermission +app.use(print) app.use(ElementPlus) app.use(pinia) app.use(router) diff --git a/src/views/measure/file/approve.vue b/src/views/measure/file/approve.vue index 0e34193..4aabd42 100644 --- a/src/views/measure/file/approve.vue +++ b/src/views/measure/file/approve.vue @@ -1,3 +1,7 @@ + + - 文件审批 + + 文件审批 + diff --git a/.eslintignore b/.eslintignore new file mode 100644 index 0000000..e96ae7e --- /dev/null +++ b/.eslintignore @@ -0,0 +1 @@ +/src/main.ts diff --git a/src/api/measure/file.ts b/src/api/measure/file.ts new file mode 100644 index 0000000..087460c --- /dev/null +++ b/src/api/measure/file.ts @@ -0,0 +1,55 @@ +// 计量文件模块接口api +import request from '../index' +import type { fileSearchType } from '@/views/measure/file/file-interface' +const prefix = 'meter/' +// 文件列表(分页) +export function listPageApi(data: fileSearchType) { + return request({ + url: `${prefix}file/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 详情 +export function listPageDetailApi(data: object) { + return request({ + url: `${prefix}file/listPage`, + method: 'post', + data, + }) +} +// 废止 +export function updateApi(data: object) { + return request({ + url: `${prefix}file/update`, + method: 'post', + data, + }) +} +// 新建 +export function addApi(data: object) { + return request({ + url: `${prefix}file/add`, + method: 'post', + data, + }) +} +// 删除 +export function deleteApi(data: { id: string }) { + return request({ + url: `${prefix}file/delete`, + method: 'post', + data, + }) +} +// 文件上传 +export function UploadFile(fileobj: any) { + const param = new FormData() + param.append('file', fileobj.file) + return request({ + url: 'file/uploadFile', + method: 'post', + headers: { 'Content-Type': 'multipart/form-data' }, + data: param, + }) +} diff --git a/src/layouts/index.vue b/src/layouts/index.vue index 270f1bb..adfed29 100644 --- a/src/layouts/index.vue +++ b/src/layouts/index.vue @@ -59,15 +59,15 @@ - + - - + + - + @@ -77,14 +77,14 @@ - + - - - + + + @@ -182,7 +182,7 @@ height: 100%; flex: auto; position: relative; - overflow: hidden; + // overflow: hidden; transition: 0.3s; } diff --git a/src/main.ts b/src/main.ts index 50dbe9f..657d9f2 100644 --- a/src/main.ts +++ b/src/main.ts @@ -1,6 +1,6 @@ import { createApp } from 'vue' import ElementPlus from 'element-plus' -import { has } from 'lodash-es' +import print from 'vue3-print-nb' import App from './App.vue' import pinia from './store' import router from './router' @@ -15,13 +15,14 @@ // 加载 iconify 图标(element plus) import { downloadAndInstall } from '@/iconify-ep' import { hasPermission } from '@/utils/composables/permission' - +// 引入打印插件 if (useSettingsStore().app.iconifyOfflineUse) { downloadAndInstall() } const app = createApp(App) app.config.globalProperties.hasPerm = hasPermission +app.use(print) app.use(ElementPlus) app.use(pinia) app.use(router) diff --git a/src/views/measure/file/approve.vue b/src/views/measure/file/approve.vue index 0e34193..4aabd42 100644 --- a/src/views/measure/file/approve.vue +++ b/src/views/measure/file/approve.vue @@ -1,3 +1,7 @@ + + - 文件审批 + + 文件审批 + diff --git a/src/views/measure/file/components/CNASfile.vue b/src/views/measure/file/components/CNASfile.vue new file mode 100644 index 0000000..d8c3c8c --- /dev/null +++ b/src/views/measure/file/components/CNASfile.vue @@ -0,0 +1,383 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 重置 + + + + + + + + + 批量导入 + + + 模板下载 + + + 新建 + + + 导出 + + + 打印 + + + + + + + + {{ (searchQuery.offset - 1) * searchQuery.limit + scope.$index + 1 }} + + + + + + + + 查看 + + + 下载 + + + 废止 + + + 删除 + + + + + + + + + + + diff --git a/.eslintignore b/.eslintignore new file mode 100644 index 0000000..e96ae7e --- /dev/null +++ b/.eslintignore @@ -0,0 +1 @@ +/src/main.ts diff --git a/src/api/measure/file.ts b/src/api/measure/file.ts new file mode 100644 index 0000000..087460c --- /dev/null +++ b/src/api/measure/file.ts @@ -0,0 +1,55 @@ +// 计量文件模块接口api +import request from '../index' +import type { fileSearchType } from '@/views/measure/file/file-interface' +const prefix = 'meter/' +// 文件列表(分页) +export function listPageApi(data: fileSearchType) { + return request({ + url: `${prefix}file/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 详情 +export function listPageDetailApi(data: object) { + return request({ + url: `${prefix}file/listPage`, + method: 'post', + data, + }) +} +// 废止 +export function updateApi(data: object) { + return request({ + url: `${prefix}file/update`, + method: 'post', + data, + }) +} +// 新建 +export function addApi(data: object) { + return request({ + url: `${prefix}file/add`, + method: 'post', + data, + }) +} +// 删除 +export function deleteApi(data: { id: string }) { + return request({ + url: `${prefix}file/delete`, + method: 'post', + data, + }) +} +// 文件上传 +export function UploadFile(fileobj: any) { + const param = new FormData() + param.append('file', fileobj.file) + return request({ + url: 'file/uploadFile', + method: 'post', + headers: { 'Content-Type': 'multipart/form-data' }, + data: param, + }) +} diff --git a/src/layouts/index.vue b/src/layouts/index.vue index 270f1bb..adfed29 100644 --- a/src/layouts/index.vue +++ b/src/layouts/index.vue @@ -59,15 +59,15 @@ - + - - + + - + @@ -77,14 +77,14 @@ - + - - - + + + @@ -182,7 +182,7 @@ height: 100%; flex: auto; position: relative; - overflow: hidden; + // overflow: hidden; transition: 0.3s; } diff --git a/src/main.ts b/src/main.ts index 50dbe9f..657d9f2 100644 --- a/src/main.ts +++ b/src/main.ts @@ -1,6 +1,6 @@ import { createApp } from 'vue' import ElementPlus from 'element-plus' -import { has } from 'lodash-es' +import print from 'vue3-print-nb' import App from './App.vue' import pinia from './store' import router from './router' @@ -15,13 +15,14 @@ // 加载 iconify 图标(element plus) import { downloadAndInstall } from '@/iconify-ep' import { hasPermission } from '@/utils/composables/permission' - +// 引入打印插件 if (useSettingsStore().app.iconifyOfflineUse) { downloadAndInstall() } const app = createApp(App) app.config.globalProperties.hasPerm = hasPermission +app.use(print) app.use(ElementPlus) app.use(pinia) app.use(router) diff --git a/src/views/measure/file/approve.vue b/src/views/measure/file/approve.vue index 0e34193..4aabd42 100644 --- a/src/views/measure/file/approve.vue +++ b/src/views/measure/file/approve.vue @@ -1,3 +1,7 @@ + + - 文件审批 + + 文件审批 + diff --git a/src/views/measure/file/components/CNASfile.vue b/src/views/measure/file/components/CNASfile.vue new file mode 100644 index 0000000..d8c3c8c --- /dev/null +++ b/src/views/measure/file/components/CNASfile.vue @@ -0,0 +1,383 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 重置 + + + + + + + + + 批量导入 + + + 模板下载 + + + 新建 + + + 导出 + + + 打印 + + + + + + + + {{ (searchQuery.offset - 1) * searchQuery.limit + scope.$index + 1 }} + + + + + + + + 查看 + + + 下载 + + + 废止 + + + 删除 + + + + + + + + + + + diff --git a/src/views/measure/file/components/addDialog.vue b/src/views/measure/file/components/addDialog.vue new file mode 100644 index 0000000..75a0768 --- /dev/null +++ b/src/views/measure/file/components/addDialog.vue @@ -0,0 +1,293 @@ + + + + + + + + + + + + + + + + + + + + + + + + + {{ fileTypeName }} + + + + + + + + + + + + + + + + + + + {{ effectiveStatusName }} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 上传 + + + + + + + + + + 提交 + + + 保存 + + + 关闭 + + + + + + + + + diff --git a/.eslintignore b/.eslintignore new file mode 100644 index 0000000..e96ae7e --- /dev/null +++ b/.eslintignore @@ -0,0 +1 @@ +/src/main.ts diff --git a/src/api/measure/file.ts b/src/api/measure/file.ts new file mode 100644 index 0000000..087460c --- /dev/null +++ b/src/api/measure/file.ts @@ -0,0 +1,55 @@ +// 计量文件模块接口api +import request from '../index' +import type { fileSearchType } from '@/views/measure/file/file-interface' +const prefix = 'meter/' +// 文件列表(分页) +export function listPageApi(data: fileSearchType) { + return request({ + url: `${prefix}file/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 详情 +export function listPageDetailApi(data: object) { + return request({ + url: `${prefix}file/listPage`, + method: 'post', + data, + }) +} +// 废止 +export function updateApi(data: object) { + return request({ + url: `${prefix}file/update`, + method: 'post', + data, + }) +} +// 新建 +export function addApi(data: object) { + return request({ + url: `${prefix}file/add`, + method: 'post', + data, + }) +} +// 删除 +export function deleteApi(data: { id: string }) { + return request({ + url: `${prefix}file/delete`, + method: 'post', + data, + }) +} +// 文件上传 +export function UploadFile(fileobj: any) { + const param = new FormData() + param.append('file', fileobj.file) + return request({ + url: 'file/uploadFile', + method: 'post', + headers: { 'Content-Type': 'multipart/form-data' }, + data: param, + }) +} diff --git a/src/layouts/index.vue b/src/layouts/index.vue index 270f1bb..adfed29 100644 --- a/src/layouts/index.vue +++ b/src/layouts/index.vue @@ -59,15 +59,15 @@ - + - - + + - + @@ -77,14 +77,14 @@ - + - - - + + + @@ -182,7 +182,7 @@ height: 100%; flex: auto; position: relative; - overflow: hidden; + // overflow: hidden; transition: 0.3s; } diff --git a/src/main.ts b/src/main.ts index 50dbe9f..657d9f2 100644 --- a/src/main.ts +++ b/src/main.ts @@ -1,6 +1,6 @@ import { createApp } from 'vue' import ElementPlus from 'element-plus' -import { has } from 'lodash-es' +import print from 'vue3-print-nb' import App from './App.vue' import pinia from './store' import router from './router' @@ -15,13 +15,14 @@ // 加载 iconify 图标(element plus) import { downloadAndInstall } from '@/iconify-ep' import { hasPermission } from '@/utils/composables/permission' - +// 引入打印插件 if (useSettingsStore().app.iconifyOfflineUse) { downloadAndInstall() } const app = createApp(App) app.config.globalProperties.hasPerm = hasPermission +app.use(print) app.use(ElementPlus) app.use(pinia) app.use(router) diff --git a/src/views/measure/file/approve.vue b/src/views/measure/file/approve.vue index 0e34193..4aabd42 100644 --- a/src/views/measure/file/approve.vue +++ b/src/views/measure/file/approve.vue @@ -1,3 +1,7 @@ + + - 文件审批 + + 文件审批 + diff --git a/src/views/measure/file/components/CNASfile.vue b/src/views/measure/file/components/CNASfile.vue new file mode 100644 index 0000000..d8c3c8c --- /dev/null +++ b/src/views/measure/file/components/CNASfile.vue @@ -0,0 +1,383 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 重置 + + + + + + + + + 批量导入 + + + 模板下载 + + + 新建 + + + 导出 + + + 打印 + + + + + + + + {{ (searchQuery.offset - 1) * searchQuery.limit + scope.$index + 1 }} + + + + + + + + 查看 + + + 下载 + + + 废止 + + + 删除 + + + + + + + + + + + diff --git a/src/views/measure/file/components/addDialog.vue b/src/views/measure/file/components/addDialog.vue new file mode 100644 index 0000000..75a0768 --- /dev/null +++ b/src/views/measure/file/components/addDialog.vue @@ -0,0 +1,293 @@ + + + + + + + + + + + + + + + + + + + + + + + + + {{ fileTypeName }} + + + + + + + + + + + + + + + + + + + {{ effectiveStatusName }} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 上传 + + + + + + + + + + 提交 + + + 保存 + + + 关闭 + + + + + + + + + diff --git a/src/views/measure/file/components/homeworkFile.vue b/src/views/measure/file/components/homeworkFile.vue new file mode 100644 index 0000000..ce469fd --- /dev/null +++ b/src/views/measure/file/components/homeworkFile.vue @@ -0,0 +1,383 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 重置 + + + + + + + + + 批量导入 + + + 模板下载 + + + 新建 + + + 导出 + + + 打印 + + + + + + + + {{ (searchQuery.offset - 1) * searchQuery.limit + scope.$index + 1 }} + + + + + + + + 查看 + + + 下载 + + + 废止 + + + 删除 + + + + + + + + + + + diff --git a/.eslintignore b/.eslintignore new file mode 100644 index 0000000..e96ae7e --- /dev/null +++ b/.eslintignore @@ -0,0 +1 @@ +/src/main.ts diff --git a/src/api/measure/file.ts b/src/api/measure/file.ts new file mode 100644 index 0000000..087460c --- /dev/null +++ b/src/api/measure/file.ts @@ -0,0 +1,55 @@ +// 计量文件模块接口api +import request from '../index' +import type { fileSearchType } from '@/views/measure/file/file-interface' +const prefix = 'meter/' +// 文件列表(分页) +export function listPageApi(data: fileSearchType) { + return request({ + url: `${prefix}file/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 详情 +export function listPageDetailApi(data: object) { + return request({ + url: `${prefix}file/listPage`, + method: 'post', + data, + }) +} +// 废止 +export function updateApi(data: object) { + return request({ + url: `${prefix}file/update`, + method: 'post', + data, + }) +} +// 新建 +export function addApi(data: object) { + return request({ + url: `${prefix}file/add`, + method: 'post', + data, + }) +} +// 删除 +export function deleteApi(data: { id: string }) { + return request({ + url: `${prefix}file/delete`, + method: 'post', + data, + }) +} +// 文件上传 +export function UploadFile(fileobj: any) { + const param = new FormData() + param.append('file', fileobj.file) + return request({ + url: 'file/uploadFile', + method: 'post', + headers: { 'Content-Type': 'multipart/form-data' }, + data: param, + }) +} diff --git a/src/layouts/index.vue b/src/layouts/index.vue index 270f1bb..adfed29 100644 --- a/src/layouts/index.vue +++ b/src/layouts/index.vue @@ -59,15 +59,15 @@ - + - - + + - + @@ -77,14 +77,14 @@ - + - - - + + + @@ -182,7 +182,7 @@ height: 100%; flex: auto; position: relative; - overflow: hidden; + // overflow: hidden; transition: 0.3s; } diff --git a/src/main.ts b/src/main.ts index 50dbe9f..657d9f2 100644 --- a/src/main.ts +++ b/src/main.ts @@ -1,6 +1,6 @@ import { createApp } from 'vue' import ElementPlus from 'element-plus' -import { has } from 'lodash-es' +import print from 'vue3-print-nb' import App from './App.vue' import pinia from './store' import router from './router' @@ -15,13 +15,14 @@ // 加载 iconify 图标(element plus) import { downloadAndInstall } from '@/iconify-ep' import { hasPermission } from '@/utils/composables/permission' - +// 引入打印插件 if (useSettingsStore().app.iconifyOfflineUse) { downloadAndInstall() } const app = createApp(App) app.config.globalProperties.hasPerm = hasPermission +app.use(print) app.use(ElementPlus) app.use(pinia) app.use(router) diff --git a/src/views/measure/file/approve.vue b/src/views/measure/file/approve.vue index 0e34193..4aabd42 100644 --- a/src/views/measure/file/approve.vue +++ b/src/views/measure/file/approve.vue @@ -1,3 +1,7 @@ + + - 文件审批 + + 文件审批 + diff --git a/src/views/measure/file/components/CNASfile.vue b/src/views/measure/file/components/CNASfile.vue new file mode 100644 index 0000000..d8c3c8c --- /dev/null +++ b/src/views/measure/file/components/CNASfile.vue @@ -0,0 +1,383 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 重置 + + + + + + + + + 批量导入 + + + 模板下载 + + + 新建 + + + 导出 + + + 打印 + + + + + + + + {{ (searchQuery.offset - 1) * searchQuery.limit + scope.$index + 1 }} + + + + + + + + 查看 + + + 下载 + + + 废止 + + + 删除 + + + + + + + + + + + diff --git a/src/views/measure/file/components/addDialog.vue b/src/views/measure/file/components/addDialog.vue new file mode 100644 index 0000000..75a0768 --- /dev/null +++ b/src/views/measure/file/components/addDialog.vue @@ -0,0 +1,293 @@ + + + + + + + + + + + + + + + + + + + + + + + + + {{ fileTypeName }} + + + + + + + + + + + + + + + + + + + {{ effectiveStatusName }} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 上传 + + + + + + + + + + 提交 + + + 保存 + + + 关闭 + + + + + + + + + diff --git a/src/views/measure/file/components/homeworkFile.vue b/src/views/measure/file/components/homeworkFile.vue new file mode 100644 index 0000000..ce469fd --- /dev/null +++ b/src/views/measure/file/components/homeworkFile.vue @@ -0,0 +1,383 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 重置 + + + + + + + + + 批量导入 + + + 模板下载 + + + 新建 + + + 导出 + + + 打印 + + + + + + + + {{ (searchQuery.offset - 1) * searchQuery.limit + scope.$index + 1 }} + + + + + + + + 查看 + + + 下载 + + + 废止 + + + 删除 + + + + + + + + + + + diff --git a/src/views/measure/file/components/programFile.vue b/src/views/measure/file/components/programFile.vue new file mode 100644 index 0000000..b677f40 --- /dev/null +++ b/src/views/measure/file/components/programFile.vue @@ -0,0 +1,384 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 重置 + + + + + + + + + 批量导入 + + + 模板下载 + + + 新建 + + + 导出 + + + 打印 + + + + + + + + {{ (searchQuery.offset - 1) * searchQuery.limit + scope.$index + 1 }} + + + + + + + + 查看 + + + 下载 + + + 废止 + + + 删除 + + + + + + + + + + + + diff --git a/.eslintignore b/.eslintignore new file mode 100644 index 0000000..e96ae7e --- /dev/null +++ b/.eslintignore @@ -0,0 +1 @@ +/src/main.ts diff --git a/src/api/measure/file.ts b/src/api/measure/file.ts new file mode 100644 index 0000000..087460c --- /dev/null +++ b/src/api/measure/file.ts @@ -0,0 +1,55 @@ +// 计量文件模块接口api +import request from '../index' +import type { fileSearchType } from '@/views/measure/file/file-interface' +const prefix = 'meter/' +// 文件列表(分页) +export function listPageApi(data: fileSearchType) { + return request({ + url: `${prefix}file/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 详情 +export function listPageDetailApi(data: object) { + return request({ + url: `${prefix}file/listPage`, + method: 'post', + data, + }) +} +// 废止 +export function updateApi(data: object) { + return request({ + url: `${prefix}file/update`, + method: 'post', + data, + }) +} +// 新建 +export function addApi(data: object) { + return request({ + url: `${prefix}file/add`, + method: 'post', + data, + }) +} +// 删除 +export function deleteApi(data: { id: string }) { + return request({ + url: `${prefix}file/delete`, + method: 'post', + data, + }) +} +// 文件上传 +export function UploadFile(fileobj: any) { + const param = new FormData() + param.append('file', fileobj.file) + return request({ + url: 'file/uploadFile', + method: 'post', + headers: { 'Content-Type': 'multipart/form-data' }, + data: param, + }) +} diff --git a/src/layouts/index.vue b/src/layouts/index.vue index 270f1bb..adfed29 100644 --- a/src/layouts/index.vue +++ b/src/layouts/index.vue @@ -59,15 +59,15 @@ - + - - + + - + @@ -77,14 +77,14 @@ - + - - - + + + @@ -182,7 +182,7 @@ height: 100%; flex: auto; position: relative; - overflow: hidden; + // overflow: hidden; transition: 0.3s; } diff --git a/src/main.ts b/src/main.ts index 50dbe9f..657d9f2 100644 --- a/src/main.ts +++ b/src/main.ts @@ -1,6 +1,6 @@ import { createApp } from 'vue' import ElementPlus from 'element-plus' -import { has } from 'lodash-es' +import print from 'vue3-print-nb' import App from './App.vue' import pinia from './store' import router from './router' @@ -15,13 +15,14 @@ // 加载 iconify 图标(element plus) import { downloadAndInstall } from '@/iconify-ep' import { hasPermission } from '@/utils/composables/permission' - +// 引入打印插件 if (useSettingsStore().app.iconifyOfflineUse) { downloadAndInstall() } const app = createApp(App) app.config.globalProperties.hasPerm = hasPermission +app.use(print) app.use(ElementPlus) app.use(pinia) app.use(router) diff --git a/src/views/measure/file/approve.vue b/src/views/measure/file/approve.vue index 0e34193..4aabd42 100644 --- a/src/views/measure/file/approve.vue +++ b/src/views/measure/file/approve.vue @@ -1,3 +1,7 @@ + + - 文件审批 + + 文件审批 + diff --git a/src/views/measure/file/components/CNASfile.vue b/src/views/measure/file/components/CNASfile.vue new file mode 100644 index 0000000..d8c3c8c --- /dev/null +++ b/src/views/measure/file/components/CNASfile.vue @@ -0,0 +1,383 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 重置 + + + + + + + + + 批量导入 + + + 模板下载 + + + 新建 + + + 导出 + + + 打印 + + + + + + + + {{ (searchQuery.offset - 1) * searchQuery.limit + scope.$index + 1 }} + + + + + + + + 查看 + + + 下载 + + + 废止 + + + 删除 + + + + + + + + + + + diff --git a/src/views/measure/file/components/addDialog.vue b/src/views/measure/file/components/addDialog.vue new file mode 100644 index 0000000..75a0768 --- /dev/null +++ b/src/views/measure/file/components/addDialog.vue @@ -0,0 +1,293 @@ + + + + + + + + + + + + + + + + + + + + + + + + + {{ fileTypeName }} + + + + + + + + + + + + + + + + + + + {{ effectiveStatusName }} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 上传 + + + + + + + + + + 提交 + + + 保存 + + + 关闭 + + + + + + + + + diff --git a/src/views/measure/file/components/homeworkFile.vue b/src/views/measure/file/components/homeworkFile.vue new file mode 100644 index 0000000..ce469fd --- /dev/null +++ b/src/views/measure/file/components/homeworkFile.vue @@ -0,0 +1,383 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 重置 + + + + + + + + + 批量导入 + + + 模板下载 + + + 新建 + + + 导出 + + + 打印 + + + + + + + + {{ (searchQuery.offset - 1) * searchQuery.limit + scope.$index + 1 }} + + + + + + + + 查看 + + + 下载 + + + 废止 + + + 删除 + + + + + + + + + + + diff --git a/src/views/measure/file/components/programFile.vue b/src/views/measure/file/components/programFile.vue new file mode 100644 index 0000000..b677f40 --- /dev/null +++ b/src/views/measure/file/components/programFile.vue @@ -0,0 +1,384 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 重置 + + + + + + + + + 批量导入 + + + 模板下载 + + + 新建 + + + 导出 + + + 打印 + + + + + + + + {{ (searchQuery.offset - 1) * searchQuery.limit + scope.$index + 1 }} + + + + + + + + 查看 + + + 下载 + + + 废止 + + + 删除 + + + + + + + + + + + + diff --git a/src/views/measure/file/components/qualityManual.vue b/src/views/measure/file/components/qualityManual.vue new file mode 100644 index 0000000..63c5eee --- /dev/null +++ b/src/views/measure/file/components/qualityManual.vue @@ -0,0 +1,383 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 重置 + + + + + + + + + 批量导入 + + + 模板下载 + + + 新建 + + + 导出 + + + 打印 + + + + + + + + {{ (searchQuery.offset - 1) * searchQuery.limit + scope.$index + 1 }} + + + + + + + + 查看 + + + 下载 + + + 废止 + + + 删除 + + + + + + + + + + + diff --git a/.eslintignore b/.eslintignore new file mode 100644 index 0000000..e96ae7e --- /dev/null +++ b/.eslintignore @@ -0,0 +1 @@ +/src/main.ts diff --git a/src/api/measure/file.ts b/src/api/measure/file.ts new file mode 100644 index 0000000..087460c --- /dev/null +++ b/src/api/measure/file.ts @@ -0,0 +1,55 @@ +// 计量文件模块接口api +import request from '../index' +import type { fileSearchType } from '@/views/measure/file/file-interface' +const prefix = 'meter/' +// 文件列表(分页) +export function listPageApi(data: fileSearchType) { + return request({ + url: `${prefix}file/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 详情 +export function listPageDetailApi(data: object) { + return request({ + url: `${prefix}file/listPage`, + method: 'post', + data, + }) +} +// 废止 +export function updateApi(data: object) { + return request({ + url: `${prefix}file/update`, + method: 'post', + data, + }) +} +// 新建 +export function addApi(data: object) { + return request({ + url: `${prefix}file/add`, + method: 'post', + data, + }) +} +// 删除 +export function deleteApi(data: { id: string }) { + return request({ + url: `${prefix}file/delete`, + method: 'post', + data, + }) +} +// 文件上传 +export function UploadFile(fileobj: any) { + const param = new FormData() + param.append('file', fileobj.file) + return request({ + url: 'file/uploadFile', + method: 'post', + headers: { 'Content-Type': 'multipart/form-data' }, + data: param, + }) +} diff --git a/src/layouts/index.vue b/src/layouts/index.vue index 270f1bb..adfed29 100644 --- a/src/layouts/index.vue +++ b/src/layouts/index.vue @@ -59,15 +59,15 @@ - + - - + + - + @@ -77,14 +77,14 @@ - + - - - + + + @@ -182,7 +182,7 @@ height: 100%; flex: auto; position: relative; - overflow: hidden; + // overflow: hidden; transition: 0.3s; } diff --git a/src/main.ts b/src/main.ts index 50dbe9f..657d9f2 100644 --- a/src/main.ts +++ b/src/main.ts @@ -1,6 +1,6 @@ import { createApp } from 'vue' import ElementPlus from 'element-plus' -import { has } from 'lodash-es' +import print from 'vue3-print-nb' import App from './App.vue' import pinia from './store' import router from './router' @@ -15,13 +15,14 @@ // 加载 iconify 图标(element plus) import { downloadAndInstall } from '@/iconify-ep' import { hasPermission } from '@/utils/composables/permission' - +// 引入打印插件 if (useSettingsStore().app.iconifyOfflineUse) { downloadAndInstall() } const app = createApp(App) app.config.globalProperties.hasPerm = hasPermission +app.use(print) app.use(ElementPlus) app.use(pinia) app.use(router) diff --git a/src/views/measure/file/approve.vue b/src/views/measure/file/approve.vue index 0e34193..4aabd42 100644 --- a/src/views/measure/file/approve.vue +++ b/src/views/measure/file/approve.vue @@ -1,3 +1,7 @@ + + - 文件审批 + + 文件审批 + diff --git a/src/views/measure/file/components/CNASfile.vue b/src/views/measure/file/components/CNASfile.vue new file mode 100644 index 0000000..d8c3c8c --- /dev/null +++ b/src/views/measure/file/components/CNASfile.vue @@ -0,0 +1,383 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 重置 + + + + + + + + + 批量导入 + + + 模板下载 + + + 新建 + + + 导出 + + + 打印 + + + + + + + + {{ (searchQuery.offset - 1) * searchQuery.limit + scope.$index + 1 }} + + + + + + + + 查看 + + + 下载 + + + 废止 + + + 删除 + + + + + + + + + + + diff --git a/src/views/measure/file/components/addDialog.vue b/src/views/measure/file/components/addDialog.vue new file mode 100644 index 0000000..75a0768 --- /dev/null +++ b/src/views/measure/file/components/addDialog.vue @@ -0,0 +1,293 @@ + + + + + + + + + + + + + + + + + + + + + + + + + {{ fileTypeName }} + + + + + + + + + + + + + + + + + + + {{ effectiveStatusName }} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 上传 + + + + + + + + + + 提交 + + + 保存 + + + 关闭 + + + + + + + + + diff --git a/src/views/measure/file/components/homeworkFile.vue b/src/views/measure/file/components/homeworkFile.vue new file mode 100644 index 0000000..ce469fd --- /dev/null +++ b/src/views/measure/file/components/homeworkFile.vue @@ -0,0 +1,383 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 重置 + + + + + + + + + 批量导入 + + + 模板下载 + + + 新建 + + + 导出 + + + 打印 + + + + + + + + {{ (searchQuery.offset - 1) * searchQuery.limit + scope.$index + 1 }} + + + + + + + + 查看 + + + 下载 + + + 废止 + + + 删除 + + + + + + + + + + + diff --git a/src/views/measure/file/components/programFile.vue b/src/views/measure/file/components/programFile.vue new file mode 100644 index 0000000..b677f40 --- /dev/null +++ b/src/views/measure/file/components/programFile.vue @@ -0,0 +1,384 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 重置 + + + + + + + + + 批量导入 + + + 模板下载 + + + 新建 + + + 导出 + + + 打印 + + + + + + + + {{ (searchQuery.offset - 1) * searchQuery.limit + scope.$index + 1 }} + + + + + + + + 查看 + + + 下载 + + + 废止 + + + 删除 + + + + + + + + + + + + diff --git a/src/views/measure/file/components/qualityManual.vue b/src/views/measure/file/components/qualityManual.vue new file mode 100644 index 0000000..63c5eee --- /dev/null +++ b/src/views/measure/file/components/qualityManual.vue @@ -0,0 +1,383 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 重置 + + + + + + + + + 批量导入 + + + 模板下载 + + + 新建 + + + 导出 + + + 打印 + + + + + + + + {{ (searchQuery.offset - 1) * searchQuery.limit + scope.$index + 1 }} + + + + + + + + 查看 + + + 下载 + + + 废止 + + + 删除 + + + + + + + + + + + diff --git a/src/views/measure/file/components/statute.vue b/src/views/measure/file/components/statute.vue new file mode 100644 index 0000000..727ec6f --- /dev/null +++ b/src/views/measure/file/components/statute.vue @@ -0,0 +1,383 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 重置 + + + + + + + + + 批量导入 + + + 模板下载 + + + 新建 + + + 导出 + + + 打印 + + + + + + + + {{ (searchQuery.offset - 1) * searchQuery.limit + scope.$index + 1 }} + + + + + + + + 查看 + + + 下载 + + + 废止 + + + 删除 + + + + + + + + + + + diff --git a/.eslintignore b/.eslintignore new file mode 100644 index 0000000..e96ae7e --- /dev/null +++ b/.eslintignore @@ -0,0 +1 @@ +/src/main.ts diff --git a/src/api/measure/file.ts b/src/api/measure/file.ts new file mode 100644 index 0000000..087460c --- /dev/null +++ b/src/api/measure/file.ts @@ -0,0 +1,55 @@ +// 计量文件模块接口api +import request from '../index' +import type { fileSearchType } from '@/views/measure/file/file-interface' +const prefix = 'meter/' +// 文件列表(分页) +export function listPageApi(data: fileSearchType) { + return request({ + url: `${prefix}file/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 详情 +export function listPageDetailApi(data: object) { + return request({ + url: `${prefix}file/listPage`, + method: 'post', + data, + }) +} +// 废止 +export function updateApi(data: object) { + return request({ + url: `${prefix}file/update`, + method: 'post', + data, + }) +} +// 新建 +export function addApi(data: object) { + return request({ + url: `${prefix}file/add`, + method: 'post', + data, + }) +} +// 删除 +export function deleteApi(data: { id: string }) { + return request({ + url: `${prefix}file/delete`, + method: 'post', + data, + }) +} +// 文件上传 +export function UploadFile(fileobj: any) { + const param = new FormData() + param.append('file', fileobj.file) + return request({ + url: 'file/uploadFile', + method: 'post', + headers: { 'Content-Type': 'multipart/form-data' }, + data: param, + }) +} diff --git a/src/layouts/index.vue b/src/layouts/index.vue index 270f1bb..adfed29 100644 --- a/src/layouts/index.vue +++ b/src/layouts/index.vue @@ -59,15 +59,15 @@ - + - - + + - + @@ -77,14 +77,14 @@ - + - - - + + + @@ -182,7 +182,7 @@ height: 100%; flex: auto; position: relative; - overflow: hidden; + // overflow: hidden; transition: 0.3s; } diff --git a/src/main.ts b/src/main.ts index 50dbe9f..657d9f2 100644 --- a/src/main.ts +++ b/src/main.ts @@ -1,6 +1,6 @@ import { createApp } from 'vue' import ElementPlus from 'element-plus' -import { has } from 'lodash-es' +import print from 'vue3-print-nb' import App from './App.vue' import pinia from './store' import router from './router' @@ -15,13 +15,14 @@ // 加载 iconify 图标(element plus) import { downloadAndInstall } from '@/iconify-ep' import { hasPermission } from '@/utils/composables/permission' - +// 引入打印插件 if (useSettingsStore().app.iconifyOfflineUse) { downloadAndInstall() } const app = createApp(App) app.config.globalProperties.hasPerm = hasPermission +app.use(print) app.use(ElementPlus) app.use(pinia) app.use(router) diff --git a/src/views/measure/file/approve.vue b/src/views/measure/file/approve.vue index 0e34193..4aabd42 100644 --- a/src/views/measure/file/approve.vue +++ b/src/views/measure/file/approve.vue @@ -1,3 +1,7 @@ + + - 文件审批 + + 文件审批 + diff --git a/src/views/measure/file/components/CNASfile.vue b/src/views/measure/file/components/CNASfile.vue new file mode 100644 index 0000000..d8c3c8c --- /dev/null +++ b/src/views/measure/file/components/CNASfile.vue @@ -0,0 +1,383 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 重置 + + + + + + + + + 批量导入 + + + 模板下载 + + + 新建 + + + 导出 + + + 打印 + + + + + + + + {{ (searchQuery.offset - 1) * searchQuery.limit + scope.$index + 1 }} + + + + + + + + 查看 + + + 下载 + + + 废止 + + + 删除 + + + + + + + + + + + diff --git a/src/views/measure/file/components/addDialog.vue b/src/views/measure/file/components/addDialog.vue new file mode 100644 index 0000000..75a0768 --- /dev/null +++ b/src/views/measure/file/components/addDialog.vue @@ -0,0 +1,293 @@ + + + + + + + + + + + + + + + + + + + + + + + + + {{ fileTypeName }} + + + + + + + + + + + + + + + + + + + {{ effectiveStatusName }} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 上传 + + + + + + + + + + 提交 + + + 保存 + + + 关闭 + + + + + + + + + diff --git a/src/views/measure/file/components/homeworkFile.vue b/src/views/measure/file/components/homeworkFile.vue new file mode 100644 index 0000000..ce469fd --- /dev/null +++ b/src/views/measure/file/components/homeworkFile.vue @@ -0,0 +1,383 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 重置 + + + + + + + + + 批量导入 + + + 模板下载 + + + 新建 + + + 导出 + + + 打印 + + + + + + + + {{ (searchQuery.offset - 1) * searchQuery.limit + scope.$index + 1 }} + + + + + + + + 查看 + + + 下载 + + + 废止 + + + 删除 + + + + + + + + + + + diff --git a/src/views/measure/file/components/programFile.vue b/src/views/measure/file/components/programFile.vue new file mode 100644 index 0000000..b677f40 --- /dev/null +++ b/src/views/measure/file/components/programFile.vue @@ -0,0 +1,384 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 重置 + + + + + + + + + 批量导入 + + + 模板下载 + + + 新建 + + + 导出 + + + 打印 + + + + + + + + {{ (searchQuery.offset - 1) * searchQuery.limit + scope.$index + 1 }} + + + + + + + + 查看 + + + 下载 + + + 废止 + + + 删除 + + + + + + + + + + + + diff --git a/src/views/measure/file/components/qualityManual.vue b/src/views/measure/file/components/qualityManual.vue new file mode 100644 index 0000000..63c5eee --- /dev/null +++ b/src/views/measure/file/components/qualityManual.vue @@ -0,0 +1,383 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 重置 + + + + + + + + + 批量导入 + + + 模板下载 + + + 新建 + + + 导出 + + + 打印 + + + + + + + + {{ (searchQuery.offset - 1) * searchQuery.limit + scope.$index + 1 }} + + + + + + + + 查看 + + + 下载 + + + 废止 + + + 删除 + + + + + + + + + + + diff --git a/src/views/measure/file/components/statute.vue b/src/views/measure/file/components/statute.vue new file mode 100644 index 0000000..727ec6f --- /dev/null +++ b/src/views/measure/file/components/statute.vue @@ -0,0 +1,383 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 重置 + + + + + + + + + 批量导入 + + + 模板下载 + + + 新建 + + + 导出 + + + 打印 + + + + + + + + {{ (searchQuery.offset - 1) * searchQuery.limit + scope.$index + 1 }} + + + + + + + + 查看 + + + 下载 + + + 废止 + + + 删除 + + + + + + + + + + + diff --git a/src/views/measure/file/components/technicalCapability.vue b/src/views/measure/file/components/technicalCapability.vue new file mode 100644 index 0000000..d35c080 --- /dev/null +++ b/src/views/measure/file/components/technicalCapability.vue @@ -0,0 +1,383 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 重置 + + + + + + + + + 批量导入 + + + 模板下载 + + + 新建 + + + 导出 + + + 打印 + + + + + + + + {{ (searchQuery.offset - 1) * searchQuery.limit + scope.$index + 1 }} + + + + + + + + 查看 + + + 下载 + + + 废止 + + + 删除 + + + + + + + + + + + diff --git a/.eslintignore b/.eslintignore new file mode 100644 index 0000000..e96ae7e --- /dev/null +++ b/.eslintignore @@ -0,0 +1 @@ +/src/main.ts diff --git a/src/api/measure/file.ts b/src/api/measure/file.ts new file mode 100644 index 0000000..087460c --- /dev/null +++ b/src/api/measure/file.ts @@ -0,0 +1,55 @@ +// 计量文件模块接口api +import request from '../index' +import type { fileSearchType } from '@/views/measure/file/file-interface' +const prefix = 'meter/' +// 文件列表(分页) +export function listPageApi(data: fileSearchType) { + return request({ + url: `${prefix}file/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 详情 +export function listPageDetailApi(data: object) { + return request({ + url: `${prefix}file/listPage`, + method: 'post', + data, + }) +} +// 废止 +export function updateApi(data: object) { + return request({ + url: `${prefix}file/update`, + method: 'post', + data, + }) +} +// 新建 +export function addApi(data: object) { + return request({ + url: `${prefix}file/add`, + method: 'post', + data, + }) +} +// 删除 +export function deleteApi(data: { id: string }) { + return request({ + url: `${prefix}file/delete`, + method: 'post', + data, + }) +} +// 文件上传 +export function UploadFile(fileobj: any) { + const param = new FormData() + param.append('file', fileobj.file) + return request({ + url: 'file/uploadFile', + method: 'post', + headers: { 'Content-Type': 'multipart/form-data' }, + data: param, + }) +} diff --git a/src/layouts/index.vue b/src/layouts/index.vue index 270f1bb..adfed29 100644 --- a/src/layouts/index.vue +++ b/src/layouts/index.vue @@ -59,15 +59,15 @@ - + - - + + - + @@ -77,14 +77,14 @@ - + - - - + + + @@ -182,7 +182,7 @@ height: 100%; flex: auto; position: relative; - overflow: hidden; + // overflow: hidden; transition: 0.3s; } diff --git a/src/main.ts b/src/main.ts index 50dbe9f..657d9f2 100644 --- a/src/main.ts +++ b/src/main.ts @@ -1,6 +1,6 @@ import { createApp } from 'vue' import ElementPlus from 'element-plus' -import { has } from 'lodash-es' +import print from 'vue3-print-nb' import App from './App.vue' import pinia from './store' import router from './router' @@ -15,13 +15,14 @@ // 加载 iconify 图标(element plus) import { downloadAndInstall } from '@/iconify-ep' import { hasPermission } from '@/utils/composables/permission' - +// 引入打印插件 if (useSettingsStore().app.iconifyOfflineUse) { downloadAndInstall() } const app = createApp(App) app.config.globalProperties.hasPerm = hasPermission +app.use(print) app.use(ElementPlus) app.use(pinia) app.use(router) diff --git a/src/views/measure/file/approve.vue b/src/views/measure/file/approve.vue index 0e34193..4aabd42 100644 --- a/src/views/measure/file/approve.vue +++ b/src/views/measure/file/approve.vue @@ -1,3 +1,7 @@ + + - 文件审批 + + 文件审批 + diff --git a/src/views/measure/file/components/CNASfile.vue b/src/views/measure/file/components/CNASfile.vue new file mode 100644 index 0000000..d8c3c8c --- /dev/null +++ b/src/views/measure/file/components/CNASfile.vue @@ -0,0 +1,383 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 重置 + + + + + + + + + 批量导入 + + + 模板下载 + + + 新建 + + + 导出 + + + 打印 + + + + + + + + {{ (searchQuery.offset - 1) * searchQuery.limit + scope.$index + 1 }} + + + + + + + + 查看 + + + 下载 + + + 废止 + + + 删除 + + + + + + + + + + + diff --git a/src/views/measure/file/components/addDialog.vue b/src/views/measure/file/components/addDialog.vue new file mode 100644 index 0000000..75a0768 --- /dev/null +++ b/src/views/measure/file/components/addDialog.vue @@ -0,0 +1,293 @@ + + + + + + + + + + + + + + + + + + + + + + + + + {{ fileTypeName }} + + + + + + + + + + + + + + + + + + + {{ effectiveStatusName }} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 上传 + + + + + + + + + + 提交 + + + 保存 + + + 关闭 + + + + + + + + + diff --git a/src/views/measure/file/components/homeworkFile.vue b/src/views/measure/file/components/homeworkFile.vue new file mode 100644 index 0000000..ce469fd --- /dev/null +++ b/src/views/measure/file/components/homeworkFile.vue @@ -0,0 +1,383 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 重置 + + + + + + + + + 批量导入 + + + 模板下载 + + + 新建 + + + 导出 + + + 打印 + + + + + + + + {{ (searchQuery.offset - 1) * searchQuery.limit + scope.$index + 1 }} + + + + + + + + 查看 + + + 下载 + + + 废止 + + + 删除 + + + + + + + + + + + diff --git a/src/views/measure/file/components/programFile.vue b/src/views/measure/file/components/programFile.vue new file mode 100644 index 0000000..b677f40 --- /dev/null +++ b/src/views/measure/file/components/programFile.vue @@ -0,0 +1,384 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 重置 + + + + + + + + + 批量导入 + + + 模板下载 + + + 新建 + + + 导出 + + + 打印 + + + + + + + + {{ (searchQuery.offset - 1) * searchQuery.limit + scope.$index + 1 }} + + + + + + + + 查看 + + + 下载 + + + 废止 + + + 删除 + + + + + + + + + + + + diff --git a/src/views/measure/file/components/qualityManual.vue b/src/views/measure/file/components/qualityManual.vue new file mode 100644 index 0000000..63c5eee --- /dev/null +++ b/src/views/measure/file/components/qualityManual.vue @@ -0,0 +1,383 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 重置 + + + + + + + + + 批量导入 + + + 模板下载 + + + 新建 + + + 导出 + + + 打印 + + + + + + + + {{ (searchQuery.offset - 1) * searchQuery.limit + scope.$index + 1 }} + + + + + + + + 查看 + + + 下载 + + + 废止 + + + 删除 + + + + + + + + + + + diff --git a/src/views/measure/file/components/statute.vue b/src/views/measure/file/components/statute.vue new file mode 100644 index 0000000..727ec6f --- /dev/null +++ b/src/views/measure/file/components/statute.vue @@ -0,0 +1,383 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 重置 + + + + + + + + + 批量导入 + + + 模板下载 + + + 新建 + + + 导出 + + + 打印 + + + + + + + + {{ (searchQuery.offset - 1) * searchQuery.limit + scope.$index + 1 }} + + + + + + + + 查看 + + + 下载 + + + 废止 + + + 删除 + + + + + + + + + + + diff --git a/src/views/measure/file/components/technicalCapability.vue b/src/views/measure/file/components/technicalCapability.vue new file mode 100644 index 0000000..d35c080 --- /dev/null +++ b/src/views/measure/file/components/technicalCapability.vue @@ -0,0 +1,383 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 重置 + + + + + + + + + 批量导入 + + + 模板下载 + + + 新建 + + + 导出 + + + 打印 + + + + + + + + {{ (searchQuery.offset - 1) * searchQuery.limit + scope.$index + 1 }} + + + + + + + + 查看 + + + 下载 + + + 废止 + + + 删除 + + + + + + + + + + + diff --git a/src/views/measure/file/file-interface.ts b/src/views/measure/file/file-interface.ts new file mode 100644 index 0000000..04b1388 --- /dev/null +++ b/src/views/measure/file/file-interface.ts @@ -0,0 +1,48 @@ +// 文件查询参数类型 +export interface fileSearchType { + fileNo: string // 编号 + fileName: string // 名称 + publishTime: string // 发布时间 + fileCode: string // 文件号 + effectiveTime: string // 实施时间 + effectiveStatus: string // 实施状态 + limit: number + offset: number + fileType: string // 类型 +} +// 文件返回值类型 +export interface fileListType { + createUser: string // 创建人 string + createUserId: string // 创建人用户id integer(int64) + effectiveStatus: string // 实施状态 string + effectiveStatusName: string // 实施状态字典value(列表接口返回参数) string + effectiveTime: string // 实施时间 string + fileCode: string // 文件号 string + fileName: string // 文件名称 string + fileNo: string // 文件编号 string + fileType: string // 文件类别字典code string + fileTypeName: string // 文件类别字典value(列表接口返回参数) string + id: string // 主键id(列表接口返回参数) integer(int64) + minioFileName: string // 上传文件返回名称 string + publishTime: string // 发布时间 string + publisher: string // 发布单位 string + remark: string // 备注 +} +// 文件类型返回值 +export interface fileResType { + name: string + id: string + value: string +} +// 发布单位类型 +export interface deptType { + checked: boolean + code: string + id: string + name: string + open: boolean + pCodes: string + pid: string + value: string +} + diff --git a/.eslintignore b/.eslintignore new file mode 100644 index 0000000..e96ae7e --- /dev/null +++ b/.eslintignore @@ -0,0 +1 @@ +/src/main.ts diff --git a/src/api/measure/file.ts b/src/api/measure/file.ts new file mode 100644 index 0000000..087460c --- /dev/null +++ b/src/api/measure/file.ts @@ -0,0 +1,55 @@ +// 计量文件模块接口api +import request from '../index' +import type { fileSearchType } from '@/views/measure/file/file-interface' +const prefix = 'meter/' +// 文件列表(分页) +export function listPageApi(data: fileSearchType) { + return request({ + url: `${prefix}file/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 详情 +export function listPageDetailApi(data: object) { + return request({ + url: `${prefix}file/listPage`, + method: 'post', + data, + }) +} +// 废止 +export function updateApi(data: object) { + return request({ + url: `${prefix}file/update`, + method: 'post', + data, + }) +} +// 新建 +export function addApi(data: object) { + return request({ + url: `${prefix}file/add`, + method: 'post', + data, + }) +} +// 删除 +export function deleteApi(data: { id: string }) { + return request({ + url: `${prefix}file/delete`, + method: 'post', + data, + }) +} +// 文件上传 +export function UploadFile(fileobj: any) { + const param = new FormData() + param.append('file', fileobj.file) + return request({ + url: 'file/uploadFile', + method: 'post', + headers: { 'Content-Type': 'multipart/form-data' }, + data: param, + }) +} diff --git a/src/layouts/index.vue b/src/layouts/index.vue index 270f1bb..adfed29 100644 --- a/src/layouts/index.vue +++ b/src/layouts/index.vue @@ -59,15 +59,15 @@ - + - - + + - + @@ -77,14 +77,14 @@ - + - - - + + + @@ -182,7 +182,7 @@ height: 100%; flex: auto; position: relative; - overflow: hidden; + // overflow: hidden; transition: 0.3s; } diff --git a/src/main.ts b/src/main.ts index 50dbe9f..657d9f2 100644 --- a/src/main.ts +++ b/src/main.ts @@ -1,6 +1,6 @@ import { createApp } from 'vue' import ElementPlus from 'element-plus' -import { has } from 'lodash-es' +import print from 'vue3-print-nb' import App from './App.vue' import pinia from './store' import router from './router' @@ -15,13 +15,14 @@ // 加载 iconify 图标(element plus) import { downloadAndInstall } from '@/iconify-ep' import { hasPermission } from '@/utils/composables/permission' - +// 引入打印插件 if (useSettingsStore().app.iconifyOfflineUse) { downloadAndInstall() } const app = createApp(App) app.config.globalProperties.hasPerm = hasPermission +app.use(print) app.use(ElementPlus) app.use(pinia) app.use(router) diff --git a/src/views/measure/file/approve.vue b/src/views/measure/file/approve.vue index 0e34193..4aabd42 100644 --- a/src/views/measure/file/approve.vue +++ b/src/views/measure/file/approve.vue @@ -1,3 +1,7 @@ + + - 文件审批 + + 文件审批 + diff --git a/src/views/measure/file/components/CNASfile.vue b/src/views/measure/file/components/CNASfile.vue new file mode 100644 index 0000000..d8c3c8c --- /dev/null +++ b/src/views/measure/file/components/CNASfile.vue @@ -0,0 +1,383 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 重置 + + + + + + + + + 批量导入 + + + 模板下载 + + + 新建 + + + 导出 + + + 打印 + + + + + + + + {{ (searchQuery.offset - 1) * searchQuery.limit + scope.$index + 1 }} + + + + + + + + 查看 + + + 下载 + + + 废止 + + + 删除 + + + + + + + + + + + diff --git a/src/views/measure/file/components/addDialog.vue b/src/views/measure/file/components/addDialog.vue new file mode 100644 index 0000000..75a0768 --- /dev/null +++ b/src/views/measure/file/components/addDialog.vue @@ -0,0 +1,293 @@ + + + + + + + + + + + + + + + + + + + + + + + + + {{ fileTypeName }} + + + + + + + + + + + + + + + + + + + {{ effectiveStatusName }} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 上传 + + + + + + + + + + 提交 + + + 保存 + + + 关闭 + + + + + + + + + diff --git a/src/views/measure/file/components/homeworkFile.vue b/src/views/measure/file/components/homeworkFile.vue new file mode 100644 index 0000000..ce469fd --- /dev/null +++ b/src/views/measure/file/components/homeworkFile.vue @@ -0,0 +1,383 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 重置 + + + + + + + + + 批量导入 + + + 模板下载 + + + 新建 + + + 导出 + + + 打印 + + + + + + + + {{ (searchQuery.offset - 1) * searchQuery.limit + scope.$index + 1 }} + + + + + + + + 查看 + + + 下载 + + + 废止 + + + 删除 + + + + + + + + + + + diff --git a/src/views/measure/file/components/programFile.vue b/src/views/measure/file/components/programFile.vue new file mode 100644 index 0000000..b677f40 --- /dev/null +++ b/src/views/measure/file/components/programFile.vue @@ -0,0 +1,384 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 重置 + + + + + + + + + 批量导入 + + + 模板下载 + + + 新建 + + + 导出 + + + 打印 + + + + + + + + {{ (searchQuery.offset - 1) * searchQuery.limit + scope.$index + 1 }} + + + + + + + + 查看 + + + 下载 + + + 废止 + + + 删除 + + + + + + + + + + + + diff --git a/src/views/measure/file/components/qualityManual.vue b/src/views/measure/file/components/qualityManual.vue new file mode 100644 index 0000000..63c5eee --- /dev/null +++ b/src/views/measure/file/components/qualityManual.vue @@ -0,0 +1,383 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 重置 + + + + + + + + + 批量导入 + + + 模板下载 + + + 新建 + + + 导出 + + + 打印 + + + + + + + + {{ (searchQuery.offset - 1) * searchQuery.limit + scope.$index + 1 }} + + + + + + + + 查看 + + + 下载 + + + 废止 + + + 删除 + + + + + + + + + + + diff --git a/src/views/measure/file/components/statute.vue b/src/views/measure/file/components/statute.vue new file mode 100644 index 0000000..727ec6f --- /dev/null +++ b/src/views/measure/file/components/statute.vue @@ -0,0 +1,383 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 重置 + + + + + + + + + 批量导入 + + + 模板下载 + + + 新建 + + + 导出 + + + 打印 + + + + + + + + {{ (searchQuery.offset - 1) * searchQuery.limit + scope.$index + 1 }} + + + + + + + + 查看 + + + 下载 + + + 废止 + + + 删除 + + + + + + + + + + + diff --git a/src/views/measure/file/components/technicalCapability.vue b/src/views/measure/file/components/technicalCapability.vue new file mode 100644 index 0000000..d35c080 --- /dev/null +++ b/src/views/measure/file/components/technicalCapability.vue @@ -0,0 +1,383 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 重置 + + + + + + + + + 批量导入 + + + 模板下载 + + + 新建 + + + 导出 + + + 打印 + + + + + + + + {{ (searchQuery.offset - 1) * searchQuery.limit + scope.$index + 1 }} + + + + + + + + 查看 + + + 下载 + + + 废止 + + + 删除 + + + + + + + + + + + diff --git a/src/views/measure/file/file-interface.ts b/src/views/measure/file/file-interface.ts new file mode 100644 index 0000000..04b1388 --- /dev/null +++ b/src/views/measure/file/file-interface.ts @@ -0,0 +1,48 @@ +// 文件查询参数类型 +export interface fileSearchType { + fileNo: string // 编号 + fileName: string // 名称 + publishTime: string // 发布时间 + fileCode: string // 文件号 + effectiveTime: string // 实施时间 + effectiveStatus: string // 实施状态 + limit: number + offset: number + fileType: string // 类型 +} +// 文件返回值类型 +export interface fileListType { + createUser: string // 创建人 string + createUserId: string // 创建人用户id integer(int64) + effectiveStatus: string // 实施状态 string + effectiveStatusName: string // 实施状态字典value(列表接口返回参数) string + effectiveTime: string // 实施时间 string + fileCode: string // 文件号 string + fileName: string // 文件名称 string + fileNo: string // 文件编号 string + fileType: string // 文件类别字典code string + fileTypeName: string // 文件类别字典value(列表接口返回参数) string + id: string // 主键id(列表接口返回参数) integer(int64) + minioFileName: string // 上传文件返回名称 string + publishTime: string // 发布时间 string + publisher: string // 发布单位 string + remark: string // 备注 +} +// 文件类型返回值 +export interface fileResType { + name: string + id: string + value: string +} +// 发布单位类型 +export interface deptType { + checked: boolean + code: string + id: string + name: string + open: boolean + pCodes: string + pid: string + value: string +} + diff --git a/src/views/measure/file/manageMethod.vue b/src/views/measure/file/manageMethod.vue index 62fe36a..8d13e01 100644 --- a/src/views/measure/file/manageMethod.vue +++ b/src/views/measure/file/manageMethod.vue @@ -1,3 +1,383 @@ + + + - 管理办法 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 重置 + + + + + + + + + 批量导入 + + + 模板下载 + + + 新建 + + + 导出 + + + 打印 + + + + + + + + {{ (searchQuery.offset - 1) * searchQuery.limit + scope.$index + 1 }} + + + + + + + + 查看 + + + 下载 + + + 废止 + + + 删除 + + + + + + + + + + diff --git a/.eslintignore b/.eslintignore new file mode 100644 index 0000000..e96ae7e --- /dev/null +++ b/.eslintignore @@ -0,0 +1 @@ +/src/main.ts diff --git a/src/api/measure/file.ts b/src/api/measure/file.ts new file mode 100644 index 0000000..087460c --- /dev/null +++ b/src/api/measure/file.ts @@ -0,0 +1,55 @@ +// 计量文件模块接口api +import request from '../index' +import type { fileSearchType } from '@/views/measure/file/file-interface' +const prefix = 'meter/' +// 文件列表(分页) +export function listPageApi(data: fileSearchType) { + return request({ + url: `${prefix}file/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 详情 +export function listPageDetailApi(data: object) { + return request({ + url: `${prefix}file/listPage`, + method: 'post', + data, + }) +} +// 废止 +export function updateApi(data: object) { + return request({ + url: `${prefix}file/update`, + method: 'post', + data, + }) +} +// 新建 +export function addApi(data: object) { + return request({ + url: `${prefix}file/add`, + method: 'post', + data, + }) +} +// 删除 +export function deleteApi(data: { id: string }) { + return request({ + url: `${prefix}file/delete`, + method: 'post', + data, + }) +} +// 文件上传 +export function UploadFile(fileobj: any) { + const param = new FormData() + param.append('file', fileobj.file) + return request({ + url: 'file/uploadFile', + method: 'post', + headers: { 'Content-Type': 'multipart/form-data' }, + data: param, + }) +} diff --git a/src/layouts/index.vue b/src/layouts/index.vue index 270f1bb..adfed29 100644 --- a/src/layouts/index.vue +++ b/src/layouts/index.vue @@ -59,15 +59,15 @@ - + - - + + - + @@ -77,14 +77,14 @@ - + - - - + + + @@ -182,7 +182,7 @@ height: 100%; flex: auto; position: relative; - overflow: hidden; + // overflow: hidden; transition: 0.3s; } diff --git a/src/main.ts b/src/main.ts index 50dbe9f..657d9f2 100644 --- a/src/main.ts +++ b/src/main.ts @@ -1,6 +1,6 @@ import { createApp } from 'vue' import ElementPlus from 'element-plus' -import { has } from 'lodash-es' +import print from 'vue3-print-nb' import App from './App.vue' import pinia from './store' import router from './router' @@ -15,13 +15,14 @@ // 加载 iconify 图标(element plus) import { downloadAndInstall } from '@/iconify-ep' import { hasPermission } from '@/utils/composables/permission' - +// 引入打印插件 if (useSettingsStore().app.iconifyOfflineUse) { downloadAndInstall() } const app = createApp(App) app.config.globalProperties.hasPerm = hasPermission +app.use(print) app.use(ElementPlus) app.use(pinia) app.use(router) diff --git a/src/views/measure/file/approve.vue b/src/views/measure/file/approve.vue index 0e34193..4aabd42 100644 --- a/src/views/measure/file/approve.vue +++ b/src/views/measure/file/approve.vue @@ -1,3 +1,7 @@ + + - 文件审批 + + 文件审批 + diff --git a/src/views/measure/file/components/CNASfile.vue b/src/views/measure/file/components/CNASfile.vue new file mode 100644 index 0000000..d8c3c8c --- /dev/null +++ b/src/views/measure/file/components/CNASfile.vue @@ -0,0 +1,383 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 重置 + + + + + + + + + 批量导入 + + + 模板下载 + + + 新建 + + + 导出 + + + 打印 + + + + + + + + {{ (searchQuery.offset - 1) * searchQuery.limit + scope.$index + 1 }} + + + + + + + + 查看 + + + 下载 + + + 废止 + + + 删除 + + + + + + + + + + + diff --git a/src/views/measure/file/components/addDialog.vue b/src/views/measure/file/components/addDialog.vue new file mode 100644 index 0000000..75a0768 --- /dev/null +++ b/src/views/measure/file/components/addDialog.vue @@ -0,0 +1,293 @@ + + + + + + + + + + + + + + + + + + + + + + + + + {{ fileTypeName }} + + + + + + + + + + + + + + + + + + + {{ effectiveStatusName }} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 上传 + + + + + + + + + + 提交 + + + 保存 + + + 关闭 + + + + + + + + + diff --git a/src/views/measure/file/components/homeworkFile.vue b/src/views/measure/file/components/homeworkFile.vue new file mode 100644 index 0000000..ce469fd --- /dev/null +++ b/src/views/measure/file/components/homeworkFile.vue @@ -0,0 +1,383 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 重置 + + + + + + + + + 批量导入 + + + 模板下载 + + + 新建 + + + 导出 + + + 打印 + + + + + + + + {{ (searchQuery.offset - 1) * searchQuery.limit + scope.$index + 1 }} + + + + + + + + 查看 + + + 下载 + + + 废止 + + + 删除 + + + + + + + + + + + diff --git a/src/views/measure/file/components/programFile.vue b/src/views/measure/file/components/programFile.vue new file mode 100644 index 0000000..b677f40 --- /dev/null +++ b/src/views/measure/file/components/programFile.vue @@ -0,0 +1,384 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 重置 + + + + + + + + + 批量导入 + + + 模板下载 + + + 新建 + + + 导出 + + + 打印 + + + + + + + + {{ (searchQuery.offset - 1) * searchQuery.limit + scope.$index + 1 }} + + + + + + + + 查看 + + + 下载 + + + 废止 + + + 删除 + + + + + + + + + + + + diff --git a/src/views/measure/file/components/qualityManual.vue b/src/views/measure/file/components/qualityManual.vue new file mode 100644 index 0000000..63c5eee --- /dev/null +++ b/src/views/measure/file/components/qualityManual.vue @@ -0,0 +1,383 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 重置 + + + + + + + + + 批量导入 + + + 模板下载 + + + 新建 + + + 导出 + + + 打印 + + + + + + + + {{ (searchQuery.offset - 1) * searchQuery.limit + scope.$index + 1 }} + + + + + + + + 查看 + + + 下载 + + + 废止 + + + 删除 + + + + + + + + + + + diff --git a/src/views/measure/file/components/statute.vue b/src/views/measure/file/components/statute.vue new file mode 100644 index 0000000..727ec6f --- /dev/null +++ b/src/views/measure/file/components/statute.vue @@ -0,0 +1,383 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 重置 + + + + + + + + + 批量导入 + + + 模板下载 + + + 新建 + + + 导出 + + + 打印 + + + + + + + + {{ (searchQuery.offset - 1) * searchQuery.limit + scope.$index + 1 }} + + + + + + + + 查看 + + + 下载 + + + 废止 + + + 删除 + + + + + + + + + + + diff --git a/src/views/measure/file/components/technicalCapability.vue b/src/views/measure/file/components/technicalCapability.vue new file mode 100644 index 0000000..d35c080 --- /dev/null +++ b/src/views/measure/file/components/technicalCapability.vue @@ -0,0 +1,383 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 重置 + + + + + + + + + 批量导入 + + + 模板下载 + + + 新建 + + + 导出 + + + 打印 + + + + + + + + {{ (searchQuery.offset - 1) * searchQuery.limit + scope.$index + 1 }} + + + + + + + + 查看 + + + 下载 + + + 废止 + + + 删除 + + + + + + + + + + + diff --git a/src/views/measure/file/file-interface.ts b/src/views/measure/file/file-interface.ts new file mode 100644 index 0000000..04b1388 --- /dev/null +++ b/src/views/measure/file/file-interface.ts @@ -0,0 +1,48 @@ +// 文件查询参数类型 +export interface fileSearchType { + fileNo: string // 编号 + fileName: string // 名称 + publishTime: string // 发布时间 + fileCode: string // 文件号 + effectiveTime: string // 实施时间 + effectiveStatus: string // 实施状态 + limit: number + offset: number + fileType: string // 类型 +} +// 文件返回值类型 +export interface fileListType { + createUser: string // 创建人 string + createUserId: string // 创建人用户id integer(int64) + effectiveStatus: string // 实施状态 string + effectiveStatusName: string // 实施状态字典value(列表接口返回参数) string + effectiveTime: string // 实施时间 string + fileCode: string // 文件号 string + fileName: string // 文件名称 string + fileNo: string // 文件编号 string + fileType: string // 文件类别字典code string + fileTypeName: string // 文件类别字典value(列表接口返回参数) string + id: string // 主键id(列表接口返回参数) integer(int64) + minioFileName: string // 上传文件返回名称 string + publishTime: string // 发布时间 string + publisher: string // 发布单位 string + remark: string // 备注 +} +// 文件类型返回值 +export interface fileResType { + name: string + id: string + value: string +} +// 发布单位类型 +export interface deptType { + checked: boolean + code: string + id: string + name: string + open: boolean + pCodes: string + pid: string + value: string +} + diff --git a/src/views/measure/file/manageMethod.vue b/src/views/measure/file/manageMethod.vue index 62fe36a..8d13e01 100644 --- a/src/views/measure/file/manageMethod.vue +++ b/src/views/measure/file/manageMethod.vue @@ -1,3 +1,383 @@ + + + - 管理办法 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 重置 + + + + + + + + + 批量导入 + + + 模板下载 + + + 新建 + + + 导出 + + + 打印 + + + + + + + + {{ (searchQuery.offset - 1) * searchQuery.limit + scope.$index + 1 }} + + + + + + + + 查看 + + + 下载 + + + 废止 + + + 删除 + + + + + + + + + + diff --git a/src/views/measure/file/measureRule.vue b/src/views/measure/file/measureRule.vue index 55d12ed..b0fd947 100644 --- a/src/views/measure/file/measureRule.vue +++ b/src/views/measure/file/measureRule.vue @@ -1,3 +1,383 @@ + + + - 计量规程 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 重置 + + + + + + + + + 批量导入 + + + 模板下载 + + + 新建 + + + 导出 + + + 打印 + + + + + + + + {{ (searchQuery.offset - 1) * searchQuery.limit + scope.$index + 1 }} + + + + + + + + 查看 + + + 下载 + + + 废止 + + + 删除 + + + + + + + + + + diff --git a/.eslintignore b/.eslintignore new file mode 100644 index 0000000..e96ae7e --- /dev/null +++ b/.eslintignore @@ -0,0 +1 @@ +/src/main.ts diff --git a/src/api/measure/file.ts b/src/api/measure/file.ts new file mode 100644 index 0000000..087460c --- /dev/null +++ b/src/api/measure/file.ts @@ -0,0 +1,55 @@ +// 计量文件模块接口api +import request from '../index' +import type { fileSearchType } from '@/views/measure/file/file-interface' +const prefix = 'meter/' +// 文件列表(分页) +export function listPageApi(data: fileSearchType) { + return request({ + url: `${prefix}file/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 详情 +export function listPageDetailApi(data: object) { + return request({ + url: `${prefix}file/listPage`, + method: 'post', + data, + }) +} +// 废止 +export function updateApi(data: object) { + return request({ + url: `${prefix}file/update`, + method: 'post', + data, + }) +} +// 新建 +export function addApi(data: object) { + return request({ + url: `${prefix}file/add`, + method: 'post', + data, + }) +} +// 删除 +export function deleteApi(data: { id: string }) { + return request({ + url: `${prefix}file/delete`, + method: 'post', + data, + }) +} +// 文件上传 +export function UploadFile(fileobj: any) { + const param = new FormData() + param.append('file', fileobj.file) + return request({ + url: 'file/uploadFile', + method: 'post', + headers: { 'Content-Type': 'multipart/form-data' }, + data: param, + }) +} diff --git a/src/layouts/index.vue b/src/layouts/index.vue index 270f1bb..adfed29 100644 --- a/src/layouts/index.vue +++ b/src/layouts/index.vue @@ -59,15 +59,15 @@ - + - - + + - + @@ -77,14 +77,14 @@ - + - - - + + + @@ -182,7 +182,7 @@ height: 100%; flex: auto; position: relative; - overflow: hidden; + // overflow: hidden; transition: 0.3s; } diff --git a/src/main.ts b/src/main.ts index 50dbe9f..657d9f2 100644 --- a/src/main.ts +++ b/src/main.ts @@ -1,6 +1,6 @@ import { createApp } from 'vue' import ElementPlus from 'element-plus' -import { has } from 'lodash-es' +import print from 'vue3-print-nb' import App from './App.vue' import pinia from './store' import router from './router' @@ -15,13 +15,14 @@ // 加载 iconify 图标(element plus) import { downloadAndInstall } from '@/iconify-ep' import { hasPermission } from '@/utils/composables/permission' - +// 引入打印插件 if (useSettingsStore().app.iconifyOfflineUse) { downloadAndInstall() } const app = createApp(App) app.config.globalProperties.hasPerm = hasPermission +app.use(print) app.use(ElementPlus) app.use(pinia) app.use(router) diff --git a/src/views/measure/file/approve.vue b/src/views/measure/file/approve.vue index 0e34193..4aabd42 100644 --- a/src/views/measure/file/approve.vue +++ b/src/views/measure/file/approve.vue @@ -1,3 +1,7 @@ + + - 文件审批 + + 文件审批 + diff --git a/src/views/measure/file/components/CNASfile.vue b/src/views/measure/file/components/CNASfile.vue new file mode 100644 index 0000000..d8c3c8c --- /dev/null +++ b/src/views/measure/file/components/CNASfile.vue @@ -0,0 +1,383 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 重置 + + + + + + + + + 批量导入 + + + 模板下载 + + + 新建 + + + 导出 + + + 打印 + + + + + + + + {{ (searchQuery.offset - 1) * searchQuery.limit + scope.$index + 1 }} + + + + + + + + 查看 + + + 下载 + + + 废止 + + + 删除 + + + + + + + + + + + diff --git a/src/views/measure/file/components/addDialog.vue b/src/views/measure/file/components/addDialog.vue new file mode 100644 index 0000000..75a0768 --- /dev/null +++ b/src/views/measure/file/components/addDialog.vue @@ -0,0 +1,293 @@ + + + + + + + + + + + + + + + + + + + + + + + + + {{ fileTypeName }} + + + + + + + + + + + + + + + + + + + {{ effectiveStatusName }} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 上传 + + + + + + + + + + 提交 + + + 保存 + + + 关闭 + + + + + + + + + diff --git a/src/views/measure/file/components/homeworkFile.vue b/src/views/measure/file/components/homeworkFile.vue new file mode 100644 index 0000000..ce469fd --- /dev/null +++ b/src/views/measure/file/components/homeworkFile.vue @@ -0,0 +1,383 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 重置 + + + + + + + + + 批量导入 + + + 模板下载 + + + 新建 + + + 导出 + + + 打印 + + + + + + + + {{ (searchQuery.offset - 1) * searchQuery.limit + scope.$index + 1 }} + + + + + + + + 查看 + + + 下载 + + + 废止 + + + 删除 + + + + + + + + + + + diff --git a/src/views/measure/file/components/programFile.vue b/src/views/measure/file/components/programFile.vue new file mode 100644 index 0000000..b677f40 --- /dev/null +++ b/src/views/measure/file/components/programFile.vue @@ -0,0 +1,384 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 重置 + + + + + + + + + 批量导入 + + + 模板下载 + + + 新建 + + + 导出 + + + 打印 + + + + + + + + {{ (searchQuery.offset - 1) * searchQuery.limit + scope.$index + 1 }} + + + + + + + + 查看 + + + 下载 + + + 废止 + + + 删除 + + + + + + + + + + + + diff --git a/src/views/measure/file/components/qualityManual.vue b/src/views/measure/file/components/qualityManual.vue new file mode 100644 index 0000000..63c5eee --- /dev/null +++ b/src/views/measure/file/components/qualityManual.vue @@ -0,0 +1,383 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 重置 + + + + + + + + + 批量导入 + + + 模板下载 + + + 新建 + + + 导出 + + + 打印 + + + + + + + + {{ (searchQuery.offset - 1) * searchQuery.limit + scope.$index + 1 }} + + + + + + + + 查看 + + + 下载 + + + 废止 + + + 删除 + + + + + + + + + + + diff --git a/src/views/measure/file/components/statute.vue b/src/views/measure/file/components/statute.vue new file mode 100644 index 0000000..727ec6f --- /dev/null +++ b/src/views/measure/file/components/statute.vue @@ -0,0 +1,383 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 重置 + + + + + + + + + 批量导入 + + + 模板下载 + + + 新建 + + + 导出 + + + 打印 + + + + + + + + {{ (searchQuery.offset - 1) * searchQuery.limit + scope.$index + 1 }} + + + + + + + + 查看 + + + 下载 + + + 废止 + + + 删除 + + + + + + + + + + + diff --git a/src/views/measure/file/components/technicalCapability.vue b/src/views/measure/file/components/technicalCapability.vue new file mode 100644 index 0000000..d35c080 --- /dev/null +++ b/src/views/measure/file/components/technicalCapability.vue @@ -0,0 +1,383 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 重置 + + + + + + + + + 批量导入 + + + 模板下载 + + + 新建 + + + 导出 + + + 打印 + + + + + + + + {{ (searchQuery.offset - 1) * searchQuery.limit + scope.$index + 1 }} + + + + + + + + 查看 + + + 下载 + + + 废止 + + + 删除 + + + + + + + + + + + diff --git a/src/views/measure/file/file-interface.ts b/src/views/measure/file/file-interface.ts new file mode 100644 index 0000000..04b1388 --- /dev/null +++ b/src/views/measure/file/file-interface.ts @@ -0,0 +1,48 @@ +// 文件查询参数类型 +export interface fileSearchType { + fileNo: string // 编号 + fileName: string // 名称 + publishTime: string // 发布时间 + fileCode: string // 文件号 + effectiveTime: string // 实施时间 + effectiveStatus: string // 实施状态 + limit: number + offset: number + fileType: string // 类型 +} +// 文件返回值类型 +export interface fileListType { + createUser: string // 创建人 string + createUserId: string // 创建人用户id integer(int64) + effectiveStatus: string // 实施状态 string + effectiveStatusName: string // 实施状态字典value(列表接口返回参数) string + effectiveTime: string // 实施时间 string + fileCode: string // 文件号 string + fileName: string // 文件名称 string + fileNo: string // 文件编号 string + fileType: string // 文件类别字典code string + fileTypeName: string // 文件类别字典value(列表接口返回参数) string + id: string // 主键id(列表接口返回参数) integer(int64) + minioFileName: string // 上传文件返回名称 string + publishTime: string // 发布时间 string + publisher: string // 发布单位 string + remark: string // 备注 +} +// 文件类型返回值 +export interface fileResType { + name: string + id: string + value: string +} +// 发布单位类型 +export interface deptType { + checked: boolean + code: string + id: string + name: string + open: boolean + pCodes: string + pid: string + value: string +} + diff --git a/src/views/measure/file/manageMethod.vue b/src/views/measure/file/manageMethod.vue index 62fe36a..8d13e01 100644 --- a/src/views/measure/file/manageMethod.vue +++ b/src/views/measure/file/manageMethod.vue @@ -1,3 +1,383 @@ + + + - 管理办法 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 重置 + + + + + + + + + 批量导入 + + + 模板下载 + + + 新建 + + + 导出 + + + 打印 + + + + + + + + {{ (searchQuery.offset - 1) * searchQuery.limit + scope.$index + 1 }} + + + + + + + + 查看 + + + 下载 + + + 废止 + + + 删除 + + + + + + + + + + diff --git a/src/views/measure/file/measureRule.vue b/src/views/measure/file/measureRule.vue index 55d12ed..b0fd947 100644 --- a/src/views/measure/file/measureRule.vue +++ b/src/views/measure/file/measureRule.vue @@ -1,3 +1,383 @@ + + + - 计量规程 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 重置 + + + + + + + + + 批量导入 + + + 模板下载 + + + 新建 + + + 导出 + + + 打印 + + + + + + + + {{ (searchQuery.offset - 1) * searchQuery.limit + scope.$index + 1 }} + + + + + + + + 查看 + + + 下载 + + + 废止 + + + 删除 + + + + + + + + + + diff --git a/src/views/measure/file/quality.vue b/src/views/measure/file/quality.vue index ecdcef3..1b5fffe 100644 --- a/src/views/measure/file/quality.vue +++ b/src/views/measure/file/quality.vue @@ -1,5 +1,53 @@ + + - - 质量文件 - + + + + + + {{ item.name }} + + + + + + + + diff --git a/.eslintignore b/.eslintignore new file mode 100644 index 0000000..e96ae7e --- /dev/null +++ b/.eslintignore @@ -0,0 +1 @@ +/src/main.ts diff --git a/src/api/measure/file.ts b/src/api/measure/file.ts new file mode 100644 index 0000000..087460c --- /dev/null +++ b/src/api/measure/file.ts @@ -0,0 +1,55 @@ +// 计量文件模块接口api +import request from '../index' +import type { fileSearchType } from '@/views/measure/file/file-interface' +const prefix = 'meter/' +// 文件列表(分页) +export function listPageApi(data: fileSearchType) { + return request({ + url: `${prefix}file/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 详情 +export function listPageDetailApi(data: object) { + return request({ + url: `${prefix}file/listPage`, + method: 'post', + data, + }) +} +// 废止 +export function updateApi(data: object) { + return request({ + url: `${prefix}file/update`, + method: 'post', + data, + }) +} +// 新建 +export function addApi(data: object) { + return request({ + url: `${prefix}file/add`, + method: 'post', + data, + }) +} +// 删除 +export function deleteApi(data: { id: string }) { + return request({ + url: `${prefix}file/delete`, + method: 'post', + data, + }) +} +// 文件上传 +export function UploadFile(fileobj: any) { + const param = new FormData() + param.append('file', fileobj.file) + return request({ + url: 'file/uploadFile', + method: 'post', + headers: { 'Content-Type': 'multipart/form-data' }, + data: param, + }) +} diff --git a/src/layouts/index.vue b/src/layouts/index.vue index 270f1bb..adfed29 100644 --- a/src/layouts/index.vue +++ b/src/layouts/index.vue @@ -59,15 +59,15 @@ - + - - + + - + @@ -77,14 +77,14 @@ - + - - - + + + @@ -182,7 +182,7 @@ height: 100%; flex: auto; position: relative; - overflow: hidden; + // overflow: hidden; transition: 0.3s; } diff --git a/src/main.ts b/src/main.ts index 50dbe9f..657d9f2 100644 --- a/src/main.ts +++ b/src/main.ts @@ -1,6 +1,6 @@ import { createApp } from 'vue' import ElementPlus from 'element-plus' -import { has } from 'lodash-es' +import print from 'vue3-print-nb' import App from './App.vue' import pinia from './store' import router from './router' @@ -15,13 +15,14 @@ // 加载 iconify 图标(element plus) import { downloadAndInstall } from '@/iconify-ep' import { hasPermission } from '@/utils/composables/permission' - +// 引入打印插件 if (useSettingsStore().app.iconifyOfflineUse) { downloadAndInstall() } const app = createApp(App) app.config.globalProperties.hasPerm = hasPermission +app.use(print) app.use(ElementPlus) app.use(pinia) app.use(router) diff --git a/src/views/measure/file/approve.vue b/src/views/measure/file/approve.vue index 0e34193..4aabd42 100644 --- a/src/views/measure/file/approve.vue +++ b/src/views/measure/file/approve.vue @@ -1,3 +1,7 @@ + + - 文件审批 + + 文件审批 + diff --git a/src/views/measure/file/components/CNASfile.vue b/src/views/measure/file/components/CNASfile.vue new file mode 100644 index 0000000..d8c3c8c --- /dev/null +++ b/src/views/measure/file/components/CNASfile.vue @@ -0,0 +1,383 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 重置 + + + + + + + + + 批量导入 + + + 模板下载 + + + 新建 + + + 导出 + + + 打印 + + + + + + + + {{ (searchQuery.offset - 1) * searchQuery.limit + scope.$index + 1 }} + + + + + + + + 查看 + + + 下载 + + + 废止 + + + 删除 + + + + + + + + + + + diff --git a/src/views/measure/file/components/addDialog.vue b/src/views/measure/file/components/addDialog.vue new file mode 100644 index 0000000..75a0768 --- /dev/null +++ b/src/views/measure/file/components/addDialog.vue @@ -0,0 +1,293 @@ + + + + + + + + + + + + + + + + + + + + + + + + + {{ fileTypeName }} + + + + + + + + + + + + + + + + + + + {{ effectiveStatusName }} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 上传 + + + + + + + + + + 提交 + + + 保存 + + + 关闭 + + + + + + + + + diff --git a/src/views/measure/file/components/homeworkFile.vue b/src/views/measure/file/components/homeworkFile.vue new file mode 100644 index 0000000..ce469fd --- /dev/null +++ b/src/views/measure/file/components/homeworkFile.vue @@ -0,0 +1,383 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 重置 + + + + + + + + + 批量导入 + + + 模板下载 + + + 新建 + + + 导出 + + + 打印 + + + + + + + + {{ (searchQuery.offset - 1) * searchQuery.limit + scope.$index + 1 }} + + + + + + + + 查看 + + + 下载 + + + 废止 + + + 删除 + + + + + + + + + + + diff --git a/src/views/measure/file/components/programFile.vue b/src/views/measure/file/components/programFile.vue new file mode 100644 index 0000000..b677f40 --- /dev/null +++ b/src/views/measure/file/components/programFile.vue @@ -0,0 +1,384 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 重置 + + + + + + + + + 批量导入 + + + 模板下载 + + + 新建 + + + 导出 + + + 打印 + + + + + + + + {{ (searchQuery.offset - 1) * searchQuery.limit + scope.$index + 1 }} + + + + + + + + 查看 + + + 下载 + + + 废止 + + + 删除 + + + + + + + + + + + + diff --git a/src/views/measure/file/components/qualityManual.vue b/src/views/measure/file/components/qualityManual.vue new file mode 100644 index 0000000..63c5eee --- /dev/null +++ b/src/views/measure/file/components/qualityManual.vue @@ -0,0 +1,383 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 重置 + + + + + + + + + 批量导入 + + + 模板下载 + + + 新建 + + + 导出 + + + 打印 + + + + + + + + {{ (searchQuery.offset - 1) * searchQuery.limit + scope.$index + 1 }} + + + + + + + + 查看 + + + 下载 + + + 废止 + + + 删除 + + + + + + + + + + + diff --git a/src/views/measure/file/components/statute.vue b/src/views/measure/file/components/statute.vue new file mode 100644 index 0000000..727ec6f --- /dev/null +++ b/src/views/measure/file/components/statute.vue @@ -0,0 +1,383 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 重置 + + + + + + + + + 批量导入 + + + 模板下载 + + + 新建 + + + 导出 + + + 打印 + + + + + + + + {{ (searchQuery.offset - 1) * searchQuery.limit + scope.$index + 1 }} + + + + + + + + 查看 + + + 下载 + + + 废止 + + + 删除 + + + + + + + + + + + diff --git a/src/views/measure/file/components/technicalCapability.vue b/src/views/measure/file/components/technicalCapability.vue new file mode 100644 index 0000000..d35c080 --- /dev/null +++ b/src/views/measure/file/components/technicalCapability.vue @@ -0,0 +1,383 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 重置 + + + + + + + + + 批量导入 + + + 模板下载 + + + 新建 + + + 导出 + + + 打印 + + + + + + + + {{ (searchQuery.offset - 1) * searchQuery.limit + scope.$index + 1 }} + + + + + + + + 查看 + + + 下载 + + + 废止 + + + 删除 + + + + + + + + + + + diff --git a/src/views/measure/file/file-interface.ts b/src/views/measure/file/file-interface.ts new file mode 100644 index 0000000..04b1388 --- /dev/null +++ b/src/views/measure/file/file-interface.ts @@ -0,0 +1,48 @@ +// 文件查询参数类型 +export interface fileSearchType { + fileNo: string // 编号 + fileName: string // 名称 + publishTime: string // 发布时间 + fileCode: string // 文件号 + effectiveTime: string // 实施时间 + effectiveStatus: string // 实施状态 + limit: number + offset: number + fileType: string // 类型 +} +// 文件返回值类型 +export interface fileListType { + createUser: string // 创建人 string + createUserId: string // 创建人用户id integer(int64) + effectiveStatus: string // 实施状态 string + effectiveStatusName: string // 实施状态字典value(列表接口返回参数) string + effectiveTime: string // 实施时间 string + fileCode: string // 文件号 string + fileName: string // 文件名称 string + fileNo: string // 文件编号 string + fileType: string // 文件类别字典code string + fileTypeName: string // 文件类别字典value(列表接口返回参数) string + id: string // 主键id(列表接口返回参数) integer(int64) + minioFileName: string // 上传文件返回名称 string + publishTime: string // 发布时间 string + publisher: string // 发布单位 string + remark: string // 备注 +} +// 文件类型返回值 +export interface fileResType { + name: string + id: string + value: string +} +// 发布单位类型 +export interface deptType { + checked: boolean + code: string + id: string + name: string + open: boolean + pCodes: string + pid: string + value: string +} + diff --git a/src/views/measure/file/manageMethod.vue b/src/views/measure/file/manageMethod.vue index 62fe36a..8d13e01 100644 --- a/src/views/measure/file/manageMethod.vue +++ b/src/views/measure/file/manageMethod.vue @@ -1,3 +1,383 @@ + + + - 管理办法 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 重置 + + + + + + + + + 批量导入 + + + 模板下载 + + + 新建 + + + 导出 + + + 打印 + + + + + + + + {{ (searchQuery.offset - 1) * searchQuery.limit + scope.$index + 1 }} + + + + + + + + 查看 + + + 下载 + + + 废止 + + + 删除 + + + + + + + + + + diff --git a/src/views/measure/file/measureRule.vue b/src/views/measure/file/measureRule.vue index 55d12ed..b0fd947 100644 --- a/src/views/measure/file/measureRule.vue +++ b/src/views/measure/file/measureRule.vue @@ -1,3 +1,383 @@ + + + - 计量规程 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 重置 + + + + + + + + + 批量导入 + + + 模板下载 + + + 新建 + + + 导出 + + + 打印 + + + + + + + + {{ (searchQuery.offset - 1) * searchQuery.limit + scope.$index + 1 }} + + + + + + + + 查看 + + + 下载 + + + 废止 + + + 删除 + + + + + + + + + + diff --git a/src/views/measure/file/quality.vue b/src/views/measure/file/quality.vue index ecdcef3..1b5fffe 100644 --- a/src/views/measure/file/quality.vue +++ b/src/views/measure/file/quality.vue @@ -1,5 +1,53 @@ + + - - 质量文件 - + + + + + + {{ item.name }} + + + + + + + + diff --git a/src/views/measure/file/rules.vue b/src/views/measure/file/rules.vue index 2924b2c..8d0ef94 100644 --- a/src/views/measure/file/rules.vue +++ b/src/views/measure/file/rules.vue @@ -1,5 +1,377 @@ + + + - - 规章制度 - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 重置 + + + + + + + + + 批量导入 + + + 模板下载 + + + 新建 + + + 导出 + + + 打印 + + + + + + + + {{ (searchQuery.offset - 1) * searchQuery.limit + scope.$index + 1 }} + + + + + + + + 查看 + + + 下载 + + + 废止 + + + 删除 + + + + + + + + + + diff --git a/.eslintignore b/.eslintignore new file mode 100644 index 0000000..e96ae7e --- /dev/null +++ b/.eslintignore @@ -0,0 +1 @@ +/src/main.ts diff --git a/src/api/measure/file.ts b/src/api/measure/file.ts new file mode 100644 index 0000000..087460c --- /dev/null +++ b/src/api/measure/file.ts @@ -0,0 +1,55 @@ +// 计量文件模块接口api +import request from '../index' +import type { fileSearchType } from '@/views/measure/file/file-interface' +const prefix = 'meter/' +// 文件列表(分页) +export function listPageApi(data: fileSearchType) { + return request({ + url: `${prefix}file/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} +// 详情 +export function listPageDetailApi(data: object) { + return request({ + url: `${prefix}file/listPage`, + method: 'post', + data, + }) +} +// 废止 +export function updateApi(data: object) { + return request({ + url: `${prefix}file/update`, + method: 'post', + data, + }) +} +// 新建 +export function addApi(data: object) { + return request({ + url: `${prefix}file/add`, + method: 'post', + data, + }) +} +// 删除 +export function deleteApi(data: { id: string }) { + return request({ + url: `${prefix}file/delete`, + method: 'post', + data, + }) +} +// 文件上传 +export function UploadFile(fileobj: any) { + const param = new FormData() + param.append('file', fileobj.file) + return request({ + url: 'file/uploadFile', + method: 'post', + headers: { 'Content-Type': 'multipart/form-data' }, + data: param, + }) +} diff --git a/src/layouts/index.vue b/src/layouts/index.vue index 270f1bb..adfed29 100644 --- a/src/layouts/index.vue +++ b/src/layouts/index.vue @@ -59,15 +59,15 @@ - + - - + + - + @@ -77,14 +77,14 @@ - + - - - + + + @@ -182,7 +182,7 @@ height: 100%; flex: auto; position: relative; - overflow: hidden; + // overflow: hidden; transition: 0.3s; } diff --git a/src/main.ts b/src/main.ts index 50dbe9f..657d9f2 100644 --- a/src/main.ts +++ b/src/main.ts @@ -1,6 +1,6 @@ import { createApp } from 'vue' import ElementPlus from 'element-plus' -import { has } from 'lodash-es' +import print from 'vue3-print-nb' import App from './App.vue' import pinia from './store' import router from './router' @@ -15,13 +15,14 @@ // 加载 iconify 图标(element plus) import { downloadAndInstall } from '@/iconify-ep' import { hasPermission } from '@/utils/composables/permission' - +// 引入打印插件 if (useSettingsStore().app.iconifyOfflineUse) { downloadAndInstall() } const app = createApp(App) app.config.globalProperties.hasPerm = hasPermission +app.use(print) app.use(ElementPlus) app.use(pinia) app.use(router) diff --git a/src/views/measure/file/approve.vue b/src/views/measure/file/approve.vue index 0e34193..4aabd42 100644 --- a/src/views/measure/file/approve.vue +++ b/src/views/measure/file/approve.vue @@ -1,3 +1,7 @@ + + - 文件审批 + + 文件审批 + diff --git a/src/views/measure/file/components/CNASfile.vue b/src/views/measure/file/components/CNASfile.vue new file mode 100644 index 0000000..d8c3c8c --- /dev/null +++ b/src/views/measure/file/components/CNASfile.vue @@ -0,0 +1,383 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 重置 + + + + + + + + + 批量导入 + + + 模板下载 + + + 新建 + + + 导出 + + + 打印 + + + + + + + + {{ (searchQuery.offset - 1) * searchQuery.limit + scope.$index + 1 }} + + + + + + + + 查看 + + + 下载 + + + 废止 + + + 删除 + + + + + + + + + + + diff --git a/src/views/measure/file/components/addDialog.vue b/src/views/measure/file/components/addDialog.vue new file mode 100644 index 0000000..75a0768 --- /dev/null +++ b/src/views/measure/file/components/addDialog.vue @@ -0,0 +1,293 @@ + + + + + + + + + + + + + + + + + + + + + + + + + {{ fileTypeName }} + + + + + + + + + + + + + + + + + + + {{ effectiveStatusName }} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 上传 + + + + + + + + + + 提交 + + + 保存 + + + 关闭 + + + + + + + + + diff --git a/src/views/measure/file/components/homeworkFile.vue b/src/views/measure/file/components/homeworkFile.vue new file mode 100644 index 0000000..ce469fd --- /dev/null +++ b/src/views/measure/file/components/homeworkFile.vue @@ -0,0 +1,383 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 重置 + + + + + + + + + 批量导入 + + + 模板下载 + + + 新建 + + + 导出 + + + 打印 + + + + + + + + {{ (searchQuery.offset - 1) * searchQuery.limit + scope.$index + 1 }} + + + + + + + + 查看 + + + 下载 + + + 废止 + + + 删除 + + + + + + + + + + + diff --git a/src/views/measure/file/components/programFile.vue b/src/views/measure/file/components/programFile.vue new file mode 100644 index 0000000..b677f40 --- /dev/null +++ b/src/views/measure/file/components/programFile.vue @@ -0,0 +1,384 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 重置 + + + + + + + + + 批量导入 + + + 模板下载 + + + 新建 + + + 导出 + + + 打印 + + + + + + + + {{ (searchQuery.offset - 1) * searchQuery.limit + scope.$index + 1 }} + + + + + + + + 查看 + + + 下载 + + + 废止 + + + 删除 + + + + + + + + + + + + diff --git a/src/views/measure/file/components/qualityManual.vue b/src/views/measure/file/components/qualityManual.vue new file mode 100644 index 0000000..63c5eee --- /dev/null +++ b/src/views/measure/file/components/qualityManual.vue @@ -0,0 +1,383 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 重置 + + + + + + + + + 批量导入 + + + 模板下载 + + + 新建 + + + 导出 + + + 打印 + + + + + + + + {{ (searchQuery.offset - 1) * searchQuery.limit + scope.$index + 1 }} + + + + + + + + 查看 + + + 下载 + + + 废止 + + + 删除 + + + + + + + + + + + diff --git a/src/views/measure/file/components/statute.vue b/src/views/measure/file/components/statute.vue new file mode 100644 index 0000000..727ec6f --- /dev/null +++ b/src/views/measure/file/components/statute.vue @@ -0,0 +1,383 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 重置 + + + + + + + + + 批量导入 + + + 模板下载 + + + 新建 + + + 导出 + + + 打印 + + + + + + + + {{ (searchQuery.offset - 1) * searchQuery.limit + scope.$index + 1 }} + + + + + + + + 查看 + + + 下载 + + + 废止 + + + 删除 + + + + + + + + + + + diff --git a/src/views/measure/file/components/technicalCapability.vue b/src/views/measure/file/components/technicalCapability.vue new file mode 100644 index 0000000..d35c080 --- /dev/null +++ b/src/views/measure/file/components/technicalCapability.vue @@ -0,0 +1,383 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 重置 + + + + + + + + + 批量导入 + + + 模板下载 + + + 新建 + + + 导出 + + + 打印 + + + + + + + + {{ (searchQuery.offset - 1) * searchQuery.limit + scope.$index + 1 }} + + + + + + + + 查看 + + + 下载 + + + 废止 + + + 删除 + + + + + + + + + + + diff --git a/src/views/measure/file/file-interface.ts b/src/views/measure/file/file-interface.ts new file mode 100644 index 0000000..04b1388 --- /dev/null +++ b/src/views/measure/file/file-interface.ts @@ -0,0 +1,48 @@ +// 文件查询参数类型 +export interface fileSearchType { + fileNo: string // 编号 + fileName: string // 名称 + publishTime: string // 发布时间 + fileCode: string // 文件号 + effectiveTime: string // 实施时间 + effectiveStatus: string // 实施状态 + limit: number + offset: number + fileType: string // 类型 +} +// 文件返回值类型 +export interface fileListType { + createUser: string // 创建人 string + createUserId: string // 创建人用户id integer(int64) + effectiveStatus: string // 实施状态 string + effectiveStatusName: string // 实施状态字典value(列表接口返回参数) string + effectiveTime: string // 实施时间 string + fileCode: string // 文件号 string + fileName: string // 文件名称 string + fileNo: string // 文件编号 string + fileType: string // 文件类别字典code string + fileTypeName: string // 文件类别字典value(列表接口返回参数) string + id: string // 主键id(列表接口返回参数) integer(int64) + minioFileName: string // 上传文件返回名称 string + publishTime: string // 发布时间 string + publisher: string // 发布单位 string + remark: string // 备注 +} +// 文件类型返回值 +export interface fileResType { + name: string + id: string + value: string +} +// 发布单位类型 +export interface deptType { + checked: boolean + code: string + id: string + name: string + open: boolean + pCodes: string + pid: string + value: string +} + diff --git a/src/views/measure/file/manageMethod.vue b/src/views/measure/file/manageMethod.vue index 62fe36a..8d13e01 100644 --- a/src/views/measure/file/manageMethod.vue +++ b/src/views/measure/file/manageMethod.vue @@ -1,3 +1,383 @@ + + + - 管理办法 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 重置 + + + + + + + + + 批量导入 + + + 模板下载 + + + 新建 + + + 导出 + + + 打印 + + + + + + + + {{ (searchQuery.offset - 1) * searchQuery.limit + scope.$index + 1 }} + + + + + + + + 查看 + + + 下载 + + + 废止 + + + 删除 + + + + + + + + + + diff --git a/src/views/measure/file/measureRule.vue b/src/views/measure/file/measureRule.vue index 55d12ed..b0fd947 100644 --- a/src/views/measure/file/measureRule.vue +++ b/src/views/measure/file/measureRule.vue @@ -1,3 +1,383 @@ + + + - 计量规程 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 重置 + + + + + + + + + 批量导入 + + + 模板下载 + + + 新建 + + + 导出 + + + 打印 + + + + + + + + {{ (searchQuery.offset - 1) * searchQuery.limit + scope.$index + 1 }} + + + + + + + + 查看 + + + 下载 + + + 废止 + + + 删除 + + + + + + + + + + diff --git a/src/views/measure/file/quality.vue b/src/views/measure/file/quality.vue index ecdcef3..1b5fffe 100644 --- a/src/views/measure/file/quality.vue +++ b/src/views/measure/file/quality.vue @@ -1,5 +1,53 @@ + + - - 质量文件 - + + + + + + {{ item.name }} + + + + + + + + diff --git a/src/views/measure/file/rules.vue b/src/views/measure/file/rules.vue index 2924b2c..8d0ef94 100644 --- a/src/views/measure/file/rules.vue +++ b/src/views/measure/file/rules.vue @@ -1,5 +1,377 @@ + + + - - 规章制度 - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 重置 + + + + + + + + + 批量导入 + + + 模板下载 + + + 新建 + + + 导出 + + + 打印 + + + + + + + + {{ (searchQuery.offset - 1) * searchQuery.limit + scope.$index + 1 }} + + + + + + + + 查看 + + + 下载 + + + 废止 + + + 删除 + + + + + + + + + + diff --git a/src/views/measure/file/testingMethod.vue b/src/views/measure/file/testingMethod.vue index 73fb89f..2fed3e6 100644 --- a/src/views/measure/file/testingMethod.vue +++ b/src/views/measure/file/testingMethod.vue @@ -1,3 +1,383 @@ + + + - 校准检测办法 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 重置 + + + + + + + + + 批量导入 + + + 模板下载 + + + 新建 + + + 导出 + + + 打印 + + + + + + + + {{ (searchQuery.offset - 1) * searchQuery.limit + scope.$index + 1 }} + + + + + + + + 查看 + + + 下载 + + + 废止 + + + 删除 + + + + + + + + + +