diff --git a/src/api/measure/file.ts b/src/api/measure/file.ts index f29d997..c5cea4b 100644 --- a/src/api/measure/file.ts +++ b/src/api/measure/file.ts @@ -86,3 +86,29 @@ data, }) } +// 保存草稿箱 +export function confirmDrafts(data: object) { + return request({ + url: '/meter/file/save', + method: 'post', + data, + }) +} + +// 提交 ( data 为 保存草稿箱接口的返回值) +export function submitFile(data: object) { + return request({ + url: '/meter/file/submit', + method: 'post', + data, + }) +} +// 更新草稿箱 +export function updateDrafts(data: object) { + return request({ + url: '/meter/file/draftUpdate', + method: 'post', + data, + }) +} + diff --git a/src/api/measure/file.ts b/src/api/measure/file.ts index f29d997..c5cea4b 100644 --- a/src/api/measure/file.ts +++ b/src/api/measure/file.ts @@ -86,3 +86,29 @@ data, }) } +// 保存草稿箱 +export function confirmDrafts(data: object) { + return request({ + url: '/meter/file/save', + method: 'post', + data, + }) +} + +// 提交 ( data 为 保存草稿箱接口的返回值) +export function submitFile(data: object) { + return request({ + url: '/meter/file/submit', + method: 'post', + data, + }) +} +// 更新草稿箱 +export function updateDrafts(data: object) { + return request({ + url: '/meter/file/draftUpdate', + method: 'post', + data, + }) +} + diff --git a/src/router/modules/device.ts b/src/router/modules/device.ts index 31f65c9..dfd8e27 100644 --- a/src/router/modules/device.ts +++ b/src/router/modules/device.ts @@ -81,6 +81,18 @@ }, }, { + path: ':type/:id?', + name: 'standingBookDetail', + component: () => import('@/views/device/standingBook/components/templateAdd.vue'), + meta: { + title: '设备台账', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/device/standingBook', + }, + }, + { path: 'fixedAssets', name: 'fixedAssets', component: () => import('@/views/device/standingBook/fixedAssets.vue'), @@ -90,6 +102,18 @@ auth: '/device/fixedAssets', }, }, + { + path: ':type/:id?', + name: 'fixedAssetsDetail', + component: () => import('@/views/device/standingBook/components/fixedAssetsAdd.vue'), + meta: { + title: '固定资产', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/device/standingBook', + }, + }, ], }, { @@ -236,6 +260,18 @@ auth: '/device/handleApply', }, }, + { + path: ':type/:id?', + name: 'stateManageDetail', + component: () => import('@/views/device/stateManage/components/templateAdd.vue'), + meta: { + title: '状态管理', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/device/stateManage', + }, + }, ], }, { diff --git a/src/api/measure/file.ts b/src/api/measure/file.ts index f29d997..c5cea4b 100644 --- a/src/api/measure/file.ts +++ b/src/api/measure/file.ts @@ -86,3 +86,29 @@ data, }) } +// 保存草稿箱 +export function confirmDrafts(data: object) { + return request({ + url: '/meter/file/save', + method: 'post', + data, + }) +} + +// 提交 ( data 为 保存草稿箱接口的返回值) +export function submitFile(data: object) { + return request({ + url: '/meter/file/submit', + method: 'post', + data, + }) +} +// 更新草稿箱 +export function updateDrafts(data: object) { + return request({ + url: '/meter/file/draftUpdate', + method: 'post', + data, + }) +} + diff --git a/src/router/modules/device.ts b/src/router/modules/device.ts index 31f65c9..dfd8e27 100644 --- a/src/router/modules/device.ts +++ b/src/router/modules/device.ts @@ -81,6 +81,18 @@ }, }, { + path: ':type/:id?', + name: 'standingBookDetail', + component: () => import('@/views/device/standingBook/components/templateAdd.vue'), + meta: { + title: '设备台账', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/device/standingBook', + }, + }, + { path: 'fixedAssets', name: 'fixedAssets', component: () => import('@/views/device/standingBook/fixedAssets.vue'), @@ -90,6 +102,18 @@ auth: '/device/fixedAssets', }, }, + { + path: ':type/:id?', + name: 'fixedAssetsDetail', + component: () => import('@/views/device/standingBook/components/fixedAssetsAdd.vue'), + meta: { + title: '固定资产', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/device/standingBook', + }, + }, ], }, { @@ -236,6 +260,18 @@ auth: '/device/handleApply', }, }, + { + path: ':type/:id?', + name: 'stateManageDetail', + component: () => import('@/views/device/stateManage/components/templateAdd.vue'), + meta: { + title: '状态管理', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/device/stateManage', + }, + }, ], }, { diff --git a/src/router/modules/measure.ts b/src/router/modules/measure.ts index 59de035..2fc1181 100644 --- a/src/router/modules/measure.ts +++ b/src/router/modules/measure.ts @@ -90,6 +90,18 @@ }, }, { + path: ':type/:id?', + name: 'measureFileDetail', + component: () => import('@/views/measure/file/components/addDialog.vue'), + meta: { + title: '计量文件', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/measure/file', + }, + }, + { path: 'approve', name: '', component: () => import('@/views/measure/file/approve.vue'), @@ -123,6 +135,18 @@ }, }, { + path: ':type/:id?', + name: 'PersonListDetail', + component: () => import('@/views/measure/person/components/addPerson.vue'), + meta: { + title: '计量人员', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/measure/person', + }, + }, + { path: 'certificateLog', name: 'CertificateLog', component: () => import('@/views/measure/person/certificateLog.vue'), @@ -133,6 +157,18 @@ }, }, { + path: ':type/:id?', + name: 'CertificateLogDetail', + component: () => import('@/views/measure/person/components/addRecord.vue'), + meta: { + title: '证书记录', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/measure/person', + }, + }, + { path: 'remind', name: 'Remind', component: () => import('@/views/measure/person/remind.vue'), @@ -228,6 +264,18 @@ auth: '/measure/measureDept/gcz', }, }, + { + path: ':type/:id?', + name: 'MeasureDeptDetail', + component: () => import('@/views/measure/measureDept/components/addDialog.vue'), + meta: { + title: '计量组织', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/measure/measureDept', + }, + }, ], }, { diff --git a/src/api/measure/file.ts b/src/api/measure/file.ts index f29d997..c5cea4b 100644 --- a/src/api/measure/file.ts +++ b/src/api/measure/file.ts @@ -86,3 +86,29 @@ data, }) } +// 保存草稿箱 +export function confirmDrafts(data: object) { + return request({ + url: '/meter/file/save', + method: 'post', + data, + }) +} + +// 提交 ( data 为 保存草稿箱接口的返回值) +export function submitFile(data: object) { + return request({ + url: '/meter/file/submit', + method: 'post', + data, + }) +} +// 更新草稿箱 +export function updateDrafts(data: object) { + return request({ + url: '/meter/file/draftUpdate', + method: 'post', + data, + }) +} + diff --git a/src/router/modules/device.ts b/src/router/modules/device.ts index 31f65c9..dfd8e27 100644 --- a/src/router/modules/device.ts +++ b/src/router/modules/device.ts @@ -81,6 +81,18 @@ }, }, { + path: ':type/:id?', + name: 'standingBookDetail', + component: () => import('@/views/device/standingBook/components/templateAdd.vue'), + meta: { + title: '设备台账', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/device/standingBook', + }, + }, + { path: 'fixedAssets', name: 'fixedAssets', component: () => import('@/views/device/standingBook/fixedAssets.vue'), @@ -90,6 +102,18 @@ auth: '/device/fixedAssets', }, }, + { + path: ':type/:id?', + name: 'fixedAssetsDetail', + component: () => import('@/views/device/standingBook/components/fixedAssetsAdd.vue'), + meta: { + title: '固定资产', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/device/standingBook', + }, + }, ], }, { @@ -236,6 +260,18 @@ auth: '/device/handleApply', }, }, + { + path: ':type/:id?', + name: 'stateManageDetail', + component: () => import('@/views/device/stateManage/components/templateAdd.vue'), + meta: { + title: '状态管理', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/device/stateManage', + }, + }, ], }, { diff --git a/src/router/modules/measure.ts b/src/router/modules/measure.ts index 59de035..2fc1181 100644 --- a/src/router/modules/measure.ts +++ b/src/router/modules/measure.ts @@ -90,6 +90,18 @@ }, }, { + path: ':type/:id?', + name: 'measureFileDetail', + component: () => import('@/views/measure/file/components/addDialog.vue'), + meta: { + title: '计量文件', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/measure/file', + }, + }, + { path: 'approve', name: '', component: () => import('@/views/measure/file/approve.vue'), @@ -123,6 +135,18 @@ }, }, { + path: ':type/:id?', + name: 'PersonListDetail', + component: () => import('@/views/measure/person/components/addPerson.vue'), + meta: { + title: '计量人员', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/measure/person', + }, + }, + { path: 'certificateLog', name: 'CertificateLog', component: () => import('@/views/measure/person/certificateLog.vue'), @@ -133,6 +157,18 @@ }, }, { + path: ':type/:id?', + name: 'CertificateLogDetail', + component: () => import('@/views/measure/person/components/addRecord.vue'), + meta: { + title: '证书记录', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/measure/person', + }, + }, + { path: 'remind', name: 'Remind', component: () => import('@/views/measure/person/remind.vue'), @@ -228,6 +264,18 @@ auth: '/measure/measureDept/gcz', }, }, + { + path: ':type/:id?', + name: 'MeasureDeptDetail', + component: () => import('@/views/measure/measureDept/components/addDialog.vue'), + meta: { + title: '计量组织', + icon: 'ep:key', + sidebar: false, + breadcrumb: true, + activeMenu: '/measure/measureDept', + }, + }, ], }, { diff --git a/src/views/device/borrow/components/applyList.vue b/src/views/device/borrow/components/applyList.vue index 052f3ce..9520aca 100644 --- a/src/views/device/borrow/components/applyList.vue +++ b/src/views/device/borrow/components/applyList.vue @@ -3,6 +3,7 @@ import approveAction from './approvalActionDialog.vue' import add from '@/views/device/stateManage/components/templateAdd.vue' const { proxy } = getCurrentInstance() as any +const $router = useRouter() const searchQuery = reactive({ limit: 10, offset: 1, @@ -121,19 +122,28 @@ } // 详情 const detail = (row) => { - console.log(row, 'row') - dialogVisible.value = true - addRef.value.initDialog({ - title: '详情', - ...row, + $router.push({ + name: 'stateManageDetail', + params: { + type: 'detail', + }, + query: { + title: '详情', + name: '', + }, }) } // 编辑 const update = (row) => { - dialogVisible.value = true - addRef.value.initDialog({ - title: '编辑', - ...row, + $router.push({ + name: 'stateManageDetail', + params: { + type: 'edit', + }, + query: { + title: '编辑', + name: '', + }, }) } // 删除 @@ -178,9 +188,15 @@ } // 新增 const addBtn = () => { - dialogVisible.value = true - addRef.value.initDialog({ - title: '新建', + $router.push({ + name: 'stateManageDetail', + params: { + type: 'add', + }, + query: { + title: '新建', + name: '', + }, }) } // 导出 @@ -247,8 +263,7 @@