- 测量标准装置
+ {{ `测量标准装置-${textMap[pageType]}` }}
- {{ buttonType === '详情' ? '打印' : '提交' }}
+ {{ pageType === 'detail' ? '打印' : '提交' }}
关闭
@@ -125,7 +133,7 @@
-
+
diff --git a/src/api/device/borrow.ts b/src/api/device/borrow.ts
new file mode 100644
index 0000000..28ca2ed
--- /dev/null
+++ b/src/api/device/borrow.ts
@@ -0,0 +1,27 @@
+// 设备借用相关接口api
+import request from '../index'
+import type{ searchType } from '@/views/device/borrow/borrow-interface'
+// 设备借用申请列表
+export function getApplyList(data: searchType) {
+ return request({
+ url: `/equipmentApply/equipmentApplyList?limit=${data.limit}&offset=${data.offset}`,
+ method: 'post',
+ data,
+ })
+}
+// 设备借用申请新建
+export function addApply(data: object) {
+ return request({
+ url: '/equipmentApply/addEquipmentApply',
+ method: 'post',
+ data,
+ })
+}
+// 设备借用申请详情
+export function detailApply(data: object) {
+ return request({
+ url: '/equipmentApply/equipmentApplyInfo',
+ method: 'post',
+ data,
+ })
+}
diff --git a/src/api/device/standard.ts b/src/api/device/standard.ts
index 4f0d99c..fd3d518 100644
--- a/src/api/device/standard.ts
+++ b/src/api/device/standard.ts
@@ -55,3 +55,12 @@
})
}
+// 获取申请列表
+export function getstandardEquipmentApplyList(data: object) {
+ return request({
+ url: '/standard/standardEquipmentApplyList',
+ method: 'post',
+ data,
+ })
+}
+
diff --git a/src/api/system/plan.ts b/src/api/system/plan.ts
index 8b448cd..33b384f 100644
--- a/src/api/system/plan.ts
+++ b/src/api/system/plan.ts
@@ -82,6 +82,15 @@
})
}
+// 培训记录修改
+export function getListLogupdate(data: object) {
+ return request({
+ url: `${prefix}/train/log/update`,
+ method: 'post',
+ data,
+ })
+}
+
// 培训记录详情
export function getListLogDetail(data: object) {
return request({
diff --git a/src/router/modules/device.ts b/src/router/modules/device.ts
index 04dd4d0..777ef0c 100644
--- a/src/router/modules/device.ts
+++ b/src/router/modules/device.ts
@@ -158,6 +158,18 @@
},
},
{
+ path: ':type/:id?',
+ name: 'fixedAssetsDetail',
+ component: () => import('@/views/device/standardEquipment/components/standardListAdd.vue'),
+ meta: {
+ title: '标准装置列表',
+ icon: 'ep:key',
+ sidebar: false,
+ breadcrumb: true,
+ activeMenu: '/standard/list',
+ },
+ },
+ {
path: 'expirationRemind',
name: 'expirationRemind',
component: () => import('@/views/device/standardEquipment/expirationRemind.vue'),
@@ -167,6 +179,18 @@
auth: '/standard/expirationRemind',
},
},
+ // {
+ // path: 'expirationRemind/:type/:id?',
+ // name: 'fixedAssetsDetail',
+ // component: () => import('@/views/device/standardEquipment/components/standardListAdd.vue'),
+ // meta: {
+ // title: '到期提醒',
+ // icon: 'ep:key',
+ // sidebar: false,
+ // breadcrumb: true,
+ // activeMenu: '/standard/expirationRemind',
+ // },
+ // },
{
path: 'changeApply',
name: 'changeApply',
diff --git a/src/router/modules/measure.ts b/src/router/modules/measure.ts
index 2a52c16..973fa04 100644
--- a/src/router/modules/measure.ts
+++ b/src/router/modules/measure.ts
@@ -250,7 +250,7 @@
icon: 'ep:key',
sidebar: false,
breadcrumb: true,
- activeMenu: '/measure/train/plan',
+ activeMenu: '/train/plan',
},
},
{
@@ -264,6 +264,18 @@
},
},
{
+ path: 'trainPlanApprove/:type/:id?',
+ name: 'listPageAdd',
+ component: () => import('@/views/measure/train/components/listPageAdd.vue'),
+ meta: {
+ title: '培训计划审批',
+ icon: 'ep:key',
+ sidebar: false,
+ breadcrumb: true,
+ auth: '/train/trainPlanApprove',
+ },
+ },
+ {
path: 'trainLog',
name: 'TrainLog',
component: () => import('@/views/measure/train/trainLog.vue'),
@@ -282,7 +294,7 @@
icon: 'ep:key',
sidebar: false,
breadcrumb: true,
- activeMenu: '/measure/train/trainLog',
+ activeMenu: '/train/trainLog',
},
},
],
@@ -381,6 +393,18 @@
},
},
{
+ path: ':type/:id?',
+ name: 'ListSourceAdd',
+ component: () => import('@/views/measure/source/listAdd.vue'),
+ meta: {
+ title: '溯源供方列表',
+ icon: 'ep:key',
+ sidebar: false,
+ breadcrumb: true,
+ activeMenu: '/source/list',
+ },
+ },
+ {
path: 'approve',
name: 'SourceApprove',
component: () => import('@/views/measure/source/approve.vue'),
@@ -390,6 +414,18 @@
auth: '/measure/measureSource/approve',
},
},
+ {
+ path: 'approve/:type/:id?',
+ name: 'ListpageSourceAdd',
+ component: () => import('@/views/measure/source/components/listPageAdd.vue'),
+ meta: {
+ title: '溯源供方审批',
+ icon: 'ep:key',
+ sidebar: false,
+ breadcrumb: true,
+ activeMenu: '/source/approve',
+ },
+ },
],
},
{
diff --git a/src/views/device/bench/deviceBench.vue b/src/views/device/bench/deviceBench.vue
index 9206576..8d74984 100644
--- a/src/views/device/bench/deviceBench.vue
+++ b/src/views/device/bench/deviceBench.vue
@@ -1,13 +1,397 @@
- 工作台
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 测量设备
+ {{ theMonthTotalData.testValue }}
+
+
+
+
+
+ 在用设备
+
+ {{ theMonthTotalData.testIn }}
+
+
+
+
+
+ 闲置设备
+ {{ theMonthTotalData.testLeave }}
+
+
+
+
+ 封存设备
+ {{ theMonthTotalData.testSeal }}
+
+
+
+
+
+
+
+ 标准装置
+ {{ theMonthTotalData.standardValue }}
+
+
+
+
+
+ 在用装置
+ {{ theMonthTotalData.standardIn }}
+
+
+
+
+ 暂停装置
+ {{ theMonthTotalData.standardStop }}
+
+
+
+
+ 撤销装置
+ {{ theMonthTotalData.standardAnnul }}
+
+
+
+
+
+
+
+
+
+
+ 本月设备领用
+ {{ theMonthTotalData.receive }}
+
+
+
+
+ 本月设备借用
+ {{ theMonthTotalData.borrow }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 待检定设备数量
+ {{ myEquipment.stay }}
+
+
+ 超期未检定设备数量
+ {{ myEquipment.not }}
+
+
+
+
+
+
+
+
diff --git a/src/views/device/borrow/borrow-interface.ts b/src/views/device/borrow/borrow-interface.ts
new file mode 100644
index 0000000..0cd02d3
--- /dev/null
+++ b/src/views/device/borrow/borrow-interface.ts
@@ -0,0 +1,26 @@
+// 设备借用申请查询参数类型
+export interface searchType {
+ applyName: string // 申请名称
+ applyNo: string // 申请编号
+ applyPerson: string // 申请人
+ applyUnit: string // 申请单位
+ approvalStatus?: string // 审批状态
+ createUser: string // 创建人
+ processResult: string // 处置结果
+ time: string // 申请日期
+ limit?: number
+ offset?: number
+}
+// 借用设备类型
+export interface borrowDeviceType {
+ createUser?: string // 当前用户id
+ equipmentId: string // 设备id
+ equipmentNo: string // 设备编号
+ modelNo: string // 型号
+ measureRange: string // 测量范围
+ useDept: string // 使用部门
+ usePerson: string // 使用人
+ validDate: string // 有效日期
+ edit?: boolean
+ equipmentName?: string
+}
diff --git a/src/views/device/borrow/borrwoApply.vue b/src/views/device/borrow/borrwoApply.vue
index c5771f7..6667663 100644
--- a/src/views/device/borrow/borrwoApply.vue
+++ b/src/views/device/borrow/borrwoApply.vue
@@ -1,9 +1,12 @@
@@ -32,7 +55,7 @@
-