diff --git a/src/api/device/borrow.ts b/src/api/device/borrow.ts index 28ca2ed..47a713e 100644 --- a/src/api/device/borrow.ts +++ b/src/api/device/borrow.ts @@ -25,3 +25,36 @@ data, }) } +// 设备借用申请编辑 +export function editApply(data: object) { + return request({ + url: '/equipmentApply/updateEquipmentApply', + method: 'post', + data, + }) +} +// 设备借用申请删除 +export function deleteApply(data: object) { + return request({ + url: '/equipmentApply/deleteEquipmentApply', + method: 'post', + data, + }) +} +// 设备借用申请提交 +export function submitApply(data: object) { + return request({ + url: '/equipmentApply/borrowEquipmentApply', + method: 'post', + data, + }) +} +// 设备借用申请导出 +export function exportApply(data: object) { + return request({ + url: '/equipmentApply/exportList', + method: 'post', + data, + responseType: 'blob', + }) +} diff --git a/src/api/device/borrow.ts b/src/api/device/borrow.ts index 28ca2ed..47a713e 100644 --- a/src/api/device/borrow.ts +++ b/src/api/device/borrow.ts @@ -25,3 +25,36 @@ data, }) } +// 设备借用申请编辑 +export function editApply(data: object) { + return request({ + url: '/equipmentApply/updateEquipmentApply', + method: 'post', + data, + }) +} +// 设备借用申请删除 +export function deleteApply(data: object) { + return request({ + url: '/equipmentApply/deleteEquipmentApply', + method: 'post', + data, + }) +} +// 设备借用申请提交 +export function submitApply(data: object) { + return request({ + url: '/equipmentApply/borrowEquipmentApply', + method: 'post', + data, + }) +} +// 设备借用申请导出 +export function exportApply(data: object) { + return request({ + url: '/equipmentApply/exportList', + method: 'post', + data, + responseType: 'blob', + }) +} diff --git a/src/api/device/stateManage.ts b/src/api/device/stateManage.ts new file mode 100644 index 0000000..ea79535 --- /dev/null +++ b/src/api/device/stateManage.ts @@ -0,0 +1,10 @@ +// 状态管理相关接口api +import request from '../index' +// 设备申请列表 +export function getApplyList(data: any) { + return request({ + url: `/meter/stateManage/stateManageList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} diff --git a/src/api/device/borrow.ts b/src/api/device/borrow.ts index 28ca2ed..47a713e 100644 --- a/src/api/device/borrow.ts +++ b/src/api/device/borrow.ts @@ -25,3 +25,36 @@ data, }) } +// 设备借用申请编辑 +export function editApply(data: object) { + return request({ + url: '/equipmentApply/updateEquipmentApply', + method: 'post', + data, + }) +} +// 设备借用申请删除 +export function deleteApply(data: object) { + return request({ + url: '/equipmentApply/deleteEquipmentApply', + method: 'post', + data, + }) +} +// 设备借用申请提交 +export function submitApply(data: object) { + return request({ + url: '/equipmentApply/borrowEquipmentApply', + method: 'post', + data, + }) +} +// 设备借用申请导出 +export function exportApply(data: object) { + return request({ + url: '/equipmentApply/exportList', + method: 'post', + data, + responseType: 'blob', + }) +} diff --git a/src/api/device/stateManage.ts b/src/api/device/stateManage.ts new file mode 100644 index 0000000..ea79535 --- /dev/null +++ b/src/api/device/stateManage.ts @@ -0,0 +1,10 @@ +// 状态管理相关接口api +import request from '../index' +// 设备申请列表 +export function getApplyList(data: any) { + return request({ + url: `/meter/stateManage/stateManageList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} diff --git a/src/components/DeptSelect/index.vue b/src/components/DeptSelect/index.vue index 2344541..ef7bd91 100644 --- a/src/components/DeptSelect/index.vue +++ b/src/components/DeptSelect/index.vue @@ -174,6 +174,7 @@ check-on-click-node filterable class="full-width-input" + :disabled="props.disabled" /> diff --git a/src/api/device/borrow.ts b/src/api/device/borrow.ts index 28ca2ed..47a713e 100644 --- a/src/api/device/borrow.ts +++ b/src/api/device/borrow.ts @@ -25,3 +25,36 @@ data, }) } +// 设备借用申请编辑 +export function editApply(data: object) { + return request({ + url: '/equipmentApply/updateEquipmentApply', + method: 'post', + data, + }) +} +// 设备借用申请删除 +export function deleteApply(data: object) { + return request({ + url: '/equipmentApply/deleteEquipmentApply', + method: 'post', + data, + }) +} +// 设备借用申请提交 +export function submitApply(data: object) { + return request({ + url: '/equipmentApply/borrowEquipmentApply', + method: 'post', + data, + }) +} +// 设备借用申请导出 +export function exportApply(data: object) { + return request({ + url: '/equipmentApply/exportList', + method: 'post', + data, + responseType: 'blob', + }) +} diff --git a/src/api/device/stateManage.ts b/src/api/device/stateManage.ts new file mode 100644 index 0000000..ea79535 --- /dev/null +++ b/src/api/device/stateManage.ts @@ -0,0 +1,10 @@ +// 状态管理相关接口api +import request from '../index' +// 设备申请列表 +export function getApplyList(data: any) { + return request({ + url: `/meter/stateManage/stateManageList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} diff --git a/src/components/DeptSelect/index.vue b/src/components/DeptSelect/index.vue index 2344541..ef7bd91 100644 --- a/src/components/DeptSelect/index.vue +++ b/src/components/DeptSelect/index.vue @@ -174,6 +174,7 @@ check-on-click-node filterable class="full-width-input" + :disabled="props.disabled" /> diff --git a/src/router/modules/device.ts b/src/router/modules/device.ts index 777ef0c..b10742f 100644 --- a/src/router/modules/device.ts +++ b/src/router/modules/device.ts @@ -85,7 +85,7 @@ name: 'standingBookDetail', component: () => import('@/views/device/standingBook/components/templateAdd.vue'), meta: { - title: '设备台账公用详情/编辑/新建', + title: '测量设备', icon: 'ep:key', sidebar: false, breadcrumb: true, @@ -98,15 +98,19 @@ switch (type) { case 'measureDevice': to.meta.activeMenu = '/standingBook/measureDevice' + to.meta.title = '测量设备' break case 'standardMatchDevice': to.meta.activeMenu = '/standingBook/standardMatchDevice' + to.meta.title = '校准/检定设备' break case 'adjustDevice': to.meta.activeMenu = '/standingBook/adjustDevice' + to.meta.title = '标准配套设备' break case 'measureTool': to.meta.activeMenu = '/standingBook/measureTool' + to.meta.title = '测量工装' break } next() @@ -124,7 +128,7 @@ }, { path: ':type/:id?', - name: 'fixedAssetsDetail', + name: 'fixedAssetsDetailType', component: () => import('@/views/device/standingBook/components/fixedAssetsAdd.vue'), meta: { title: '固定资产', @@ -309,7 +313,7 @@ name: 'stateManageDetail', component: () => import('@/views/device/stateManage/components/templateAdd.vue'), meta: { - title: '状态管理公用详情/编辑/新建', + title: '设备闲置申请', icon: 'ep:key', sidebar: false, breadcrumb: true, @@ -321,24 +325,31 @@ switch (type) { case 'unusedApply': to.meta.activeMenu = '/stateManage/unusedApply' + to.meta.title = '设备闲置申请' break case 'sealupApply': to.meta.activeMenu = '/stateManage/sealupApply' + to.meta.title = '设备封存申请' break case 'openApply': to.meta.activeMenu = '/stateManage/openApply' + to.meta.title = '设备启封申请' break case 'scrapApply': to.meta.activeMenu = '/stateManage/scrapApply' + to.meta.title = '设备报废申请' break case 'handleApply': to.meta.activeMenu = '/stateManage/handleApply' + to.meta.title = '设备处置申请' break case 'borrowapply': to.meta.activeMenu = '/borrow/borrowapply' + to.meta.title = '设备借用申请' break case 'borrowhandle': to.meta.activeMenu = '/borrow/borrowhandle' + to.meta.title = '设备借用处理' break } next() diff --git a/src/api/device/borrow.ts b/src/api/device/borrow.ts index 28ca2ed..47a713e 100644 --- a/src/api/device/borrow.ts +++ b/src/api/device/borrow.ts @@ -25,3 +25,36 @@ data, }) } +// 设备借用申请编辑 +export function editApply(data: object) { + return request({ + url: '/equipmentApply/updateEquipmentApply', + method: 'post', + data, + }) +} +// 设备借用申请删除 +export function deleteApply(data: object) { + return request({ + url: '/equipmentApply/deleteEquipmentApply', + method: 'post', + data, + }) +} +// 设备借用申请提交 +export function submitApply(data: object) { + return request({ + url: '/equipmentApply/borrowEquipmentApply', + method: 'post', + data, + }) +} +// 设备借用申请导出 +export function exportApply(data: object) { + return request({ + url: '/equipmentApply/exportList', + method: 'post', + data, + responseType: 'blob', + }) +} diff --git a/src/api/device/stateManage.ts b/src/api/device/stateManage.ts new file mode 100644 index 0000000..ea79535 --- /dev/null +++ b/src/api/device/stateManage.ts @@ -0,0 +1,10 @@ +// 状态管理相关接口api +import request from '../index' +// 设备申请列表 +export function getApplyList(data: any) { + return request({ + url: `/meter/stateManage/stateManageList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} diff --git a/src/components/DeptSelect/index.vue b/src/components/DeptSelect/index.vue index 2344541..ef7bd91 100644 --- a/src/components/DeptSelect/index.vue +++ b/src/components/DeptSelect/index.vue @@ -174,6 +174,7 @@ check-on-click-node filterable class="full-width-input" + :disabled="props.disabled" /> diff --git a/src/router/modules/device.ts b/src/router/modules/device.ts index 777ef0c..b10742f 100644 --- a/src/router/modules/device.ts +++ b/src/router/modules/device.ts @@ -85,7 +85,7 @@ name: 'standingBookDetail', component: () => import('@/views/device/standingBook/components/templateAdd.vue'), meta: { - title: '设备台账公用详情/编辑/新建', + title: '测量设备', icon: 'ep:key', sidebar: false, breadcrumb: true, @@ -98,15 +98,19 @@ switch (type) { case 'measureDevice': to.meta.activeMenu = '/standingBook/measureDevice' + to.meta.title = '测量设备' break case 'standardMatchDevice': to.meta.activeMenu = '/standingBook/standardMatchDevice' + to.meta.title = '校准/检定设备' break case 'adjustDevice': to.meta.activeMenu = '/standingBook/adjustDevice' + to.meta.title = '标准配套设备' break case 'measureTool': to.meta.activeMenu = '/standingBook/measureTool' + to.meta.title = '测量工装' break } next() @@ -124,7 +128,7 @@ }, { path: ':type/:id?', - name: 'fixedAssetsDetail', + name: 'fixedAssetsDetailType', component: () => import('@/views/device/standingBook/components/fixedAssetsAdd.vue'), meta: { title: '固定资产', @@ -309,7 +313,7 @@ name: 'stateManageDetail', component: () => import('@/views/device/stateManage/components/templateAdd.vue'), meta: { - title: '状态管理公用详情/编辑/新建', + title: '设备闲置申请', icon: 'ep:key', sidebar: false, breadcrumb: true, @@ -321,24 +325,31 @@ switch (type) { case 'unusedApply': to.meta.activeMenu = '/stateManage/unusedApply' + to.meta.title = '设备闲置申请' break case 'sealupApply': to.meta.activeMenu = '/stateManage/sealupApply' + to.meta.title = '设备封存申请' break case 'openApply': to.meta.activeMenu = '/stateManage/openApply' + to.meta.title = '设备启封申请' break case 'scrapApply': to.meta.activeMenu = '/stateManage/scrapApply' + to.meta.title = '设备报废申请' break case 'handleApply': to.meta.activeMenu = '/stateManage/handleApply' + to.meta.title = '设备处置申请' break case 'borrowapply': to.meta.activeMenu = '/borrow/borrowapply' + to.meta.title = '设备借用申请' break case 'borrowhandle': to.meta.activeMenu = '/borrow/borrowhandle' + to.meta.title = '设备借用处理' break } next() diff --git a/src/router/modules/measure.ts b/src/router/modules/measure.ts index 973fa04..710bdc2 100644 --- a/src/router/modules/measure.ts +++ b/src/router/modules/measure.ts @@ -107,21 +107,27 @@ switch (type) { case 'quality': to.meta.activeMenu = '/file/quality' + to.meta.title = '质量文件' break case 'rules': to.meta.activeMenu = '/file/rules' + to.meta.title = '规章制度' break case 'remind': to.meta.activeMenu = '/file/quality' + to.meta.title = '管理办法' break case 'manageMethod': to.meta.activeMenu = '/file/manageMethod' + to.meta.title = '管理办法' break case 'testingMethod': to.meta.activeMenu = '/file/testingMethod' + to.meta.title = '校准检测办法' break case 'measureRule': to.meta.activeMenu = '/file/measureRule' + to.meta.title = '计量规程' break } next() diff --git a/src/api/device/borrow.ts b/src/api/device/borrow.ts index 28ca2ed..47a713e 100644 --- a/src/api/device/borrow.ts +++ b/src/api/device/borrow.ts @@ -25,3 +25,36 @@ data, }) } +// 设备借用申请编辑 +export function editApply(data: object) { + return request({ + url: '/equipmentApply/updateEquipmentApply', + method: 'post', + data, + }) +} +// 设备借用申请删除 +export function deleteApply(data: object) { + return request({ + url: '/equipmentApply/deleteEquipmentApply', + method: 'post', + data, + }) +} +// 设备借用申请提交 +export function submitApply(data: object) { + return request({ + url: '/equipmentApply/borrowEquipmentApply', + method: 'post', + data, + }) +} +// 设备借用申请导出 +export function exportApply(data: object) { + return request({ + url: '/equipmentApply/exportList', + method: 'post', + data, + responseType: 'blob', + }) +} diff --git a/src/api/device/stateManage.ts b/src/api/device/stateManage.ts new file mode 100644 index 0000000..ea79535 --- /dev/null +++ b/src/api/device/stateManage.ts @@ -0,0 +1,10 @@ +// 状态管理相关接口api +import request from '../index' +// 设备申请列表 +export function getApplyList(data: any) { + return request({ + url: `/meter/stateManage/stateManageList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} diff --git a/src/components/DeptSelect/index.vue b/src/components/DeptSelect/index.vue index 2344541..ef7bd91 100644 --- a/src/components/DeptSelect/index.vue +++ b/src/components/DeptSelect/index.vue @@ -174,6 +174,7 @@ check-on-click-node filterable class="full-width-input" + :disabled="props.disabled" /> diff --git a/src/router/modules/device.ts b/src/router/modules/device.ts index 777ef0c..b10742f 100644 --- a/src/router/modules/device.ts +++ b/src/router/modules/device.ts @@ -85,7 +85,7 @@ name: 'standingBookDetail', component: () => import('@/views/device/standingBook/components/templateAdd.vue'), meta: { - title: '设备台账公用详情/编辑/新建', + title: '测量设备', icon: 'ep:key', sidebar: false, breadcrumb: true, @@ -98,15 +98,19 @@ switch (type) { case 'measureDevice': to.meta.activeMenu = '/standingBook/measureDevice' + to.meta.title = '测量设备' break case 'standardMatchDevice': to.meta.activeMenu = '/standingBook/standardMatchDevice' + to.meta.title = '校准/检定设备' break case 'adjustDevice': to.meta.activeMenu = '/standingBook/adjustDevice' + to.meta.title = '标准配套设备' break case 'measureTool': to.meta.activeMenu = '/standingBook/measureTool' + to.meta.title = '测量工装' break } next() @@ -124,7 +128,7 @@ }, { path: ':type/:id?', - name: 'fixedAssetsDetail', + name: 'fixedAssetsDetailType', component: () => import('@/views/device/standingBook/components/fixedAssetsAdd.vue'), meta: { title: '固定资产', @@ -309,7 +313,7 @@ name: 'stateManageDetail', component: () => import('@/views/device/stateManage/components/templateAdd.vue'), meta: { - title: '状态管理公用详情/编辑/新建', + title: '设备闲置申请', icon: 'ep:key', sidebar: false, breadcrumb: true, @@ -321,24 +325,31 @@ switch (type) { case 'unusedApply': to.meta.activeMenu = '/stateManage/unusedApply' + to.meta.title = '设备闲置申请' break case 'sealupApply': to.meta.activeMenu = '/stateManage/sealupApply' + to.meta.title = '设备封存申请' break case 'openApply': to.meta.activeMenu = '/stateManage/openApply' + to.meta.title = '设备启封申请' break case 'scrapApply': to.meta.activeMenu = '/stateManage/scrapApply' + to.meta.title = '设备报废申请' break case 'handleApply': to.meta.activeMenu = '/stateManage/handleApply' + to.meta.title = '设备处置申请' break case 'borrowapply': to.meta.activeMenu = '/borrow/borrowapply' + to.meta.title = '设备借用申请' break case 'borrowhandle': to.meta.activeMenu = '/borrow/borrowhandle' + to.meta.title = '设备借用处理' break } next() diff --git a/src/router/modules/measure.ts b/src/router/modules/measure.ts index 973fa04..710bdc2 100644 --- a/src/router/modules/measure.ts +++ b/src/router/modules/measure.ts @@ -107,21 +107,27 @@ switch (type) { case 'quality': to.meta.activeMenu = '/file/quality' + to.meta.title = '质量文件' break case 'rules': to.meta.activeMenu = '/file/rules' + to.meta.title = '规章制度' break case 'remind': to.meta.activeMenu = '/file/quality' + to.meta.title = '管理办法' break case 'manageMethod': to.meta.activeMenu = '/file/manageMethod' + to.meta.title = '管理办法' break case 'testingMethod': to.meta.activeMenu = '/file/testingMethod' + to.meta.title = '校准检测办法' break case 'measureRule': to.meta.activeMenu = '/file/measureRule' + to.meta.title = '计量规程' break } next() diff --git a/src/views/device/borrow/borrow-interface.ts b/src/views/device/borrow/borrow-interface.ts index 0cd02d3..66dd307 100644 --- a/src/views/device/borrow/borrow-interface.ts +++ b/src/views/device/borrow/borrow-interface.ts @@ -23,4 +23,5 @@ validDate: string // 有效日期 edit?: boolean equipmentName?: string + id?: string } diff --git a/src/api/device/borrow.ts b/src/api/device/borrow.ts index 28ca2ed..47a713e 100644 --- a/src/api/device/borrow.ts +++ b/src/api/device/borrow.ts @@ -25,3 +25,36 @@ data, }) } +// 设备借用申请编辑 +export function editApply(data: object) { + return request({ + url: '/equipmentApply/updateEquipmentApply', + method: 'post', + data, + }) +} +// 设备借用申请删除 +export function deleteApply(data: object) { + return request({ + url: '/equipmentApply/deleteEquipmentApply', + method: 'post', + data, + }) +} +// 设备借用申请提交 +export function submitApply(data: object) { + return request({ + url: '/equipmentApply/borrowEquipmentApply', + method: 'post', + data, + }) +} +// 设备借用申请导出 +export function exportApply(data: object) { + return request({ + url: '/equipmentApply/exportList', + method: 'post', + data, + responseType: 'blob', + }) +} diff --git a/src/api/device/stateManage.ts b/src/api/device/stateManage.ts new file mode 100644 index 0000000..ea79535 --- /dev/null +++ b/src/api/device/stateManage.ts @@ -0,0 +1,10 @@ +// 状态管理相关接口api +import request from '../index' +// 设备申请列表 +export function getApplyList(data: any) { + return request({ + url: `/meter/stateManage/stateManageList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} diff --git a/src/components/DeptSelect/index.vue b/src/components/DeptSelect/index.vue index 2344541..ef7bd91 100644 --- a/src/components/DeptSelect/index.vue +++ b/src/components/DeptSelect/index.vue @@ -174,6 +174,7 @@ check-on-click-node filterable class="full-width-input" + :disabled="props.disabled" /> diff --git a/src/router/modules/device.ts b/src/router/modules/device.ts index 777ef0c..b10742f 100644 --- a/src/router/modules/device.ts +++ b/src/router/modules/device.ts @@ -85,7 +85,7 @@ name: 'standingBookDetail', component: () => import('@/views/device/standingBook/components/templateAdd.vue'), meta: { - title: '设备台账公用详情/编辑/新建', + title: '测量设备', icon: 'ep:key', sidebar: false, breadcrumb: true, @@ -98,15 +98,19 @@ switch (type) { case 'measureDevice': to.meta.activeMenu = '/standingBook/measureDevice' + to.meta.title = '测量设备' break case 'standardMatchDevice': to.meta.activeMenu = '/standingBook/standardMatchDevice' + to.meta.title = '校准/检定设备' break case 'adjustDevice': to.meta.activeMenu = '/standingBook/adjustDevice' + to.meta.title = '标准配套设备' break case 'measureTool': to.meta.activeMenu = '/standingBook/measureTool' + to.meta.title = '测量工装' break } next() @@ -124,7 +128,7 @@ }, { path: ':type/:id?', - name: 'fixedAssetsDetail', + name: 'fixedAssetsDetailType', component: () => import('@/views/device/standingBook/components/fixedAssetsAdd.vue'), meta: { title: '固定资产', @@ -309,7 +313,7 @@ name: 'stateManageDetail', component: () => import('@/views/device/stateManage/components/templateAdd.vue'), meta: { - title: '状态管理公用详情/编辑/新建', + title: '设备闲置申请', icon: 'ep:key', sidebar: false, breadcrumb: true, @@ -321,24 +325,31 @@ switch (type) { case 'unusedApply': to.meta.activeMenu = '/stateManage/unusedApply' + to.meta.title = '设备闲置申请' break case 'sealupApply': to.meta.activeMenu = '/stateManage/sealupApply' + to.meta.title = '设备封存申请' break case 'openApply': to.meta.activeMenu = '/stateManage/openApply' + to.meta.title = '设备启封申请' break case 'scrapApply': to.meta.activeMenu = '/stateManage/scrapApply' + to.meta.title = '设备报废申请' break case 'handleApply': to.meta.activeMenu = '/stateManage/handleApply' + to.meta.title = '设备处置申请' break case 'borrowapply': to.meta.activeMenu = '/borrow/borrowapply' + to.meta.title = '设备借用申请' break case 'borrowhandle': to.meta.activeMenu = '/borrow/borrowhandle' + to.meta.title = '设备借用处理' break } next() diff --git a/src/router/modules/measure.ts b/src/router/modules/measure.ts index 973fa04..710bdc2 100644 --- a/src/router/modules/measure.ts +++ b/src/router/modules/measure.ts @@ -107,21 +107,27 @@ switch (type) { case 'quality': to.meta.activeMenu = '/file/quality' + to.meta.title = '质量文件' break case 'rules': to.meta.activeMenu = '/file/rules' + to.meta.title = '规章制度' break case 'remind': to.meta.activeMenu = '/file/quality' + to.meta.title = '管理办法' break case 'manageMethod': to.meta.activeMenu = '/file/manageMethod' + to.meta.title = '管理办法' break case 'testingMethod': to.meta.activeMenu = '/file/testingMethod' + to.meta.title = '校准检测办法' break case 'measureRule': to.meta.activeMenu = '/file/measureRule' + to.meta.title = '计量规程' break } next() diff --git a/src/views/device/borrow/borrow-interface.ts b/src/views/device/borrow/borrow-interface.ts index 0cd02d3..66dd307 100644 --- a/src/views/device/borrow/borrow-interface.ts +++ b/src/views/device/borrow/borrow-interface.ts @@ -23,4 +23,5 @@ validDate: string // 有效日期 edit?: boolean equipmentName?: string + id?: string } diff --git a/src/views/device/borrow/borrwoApply.vue b/src/views/device/borrow/borrwoApply.vue index 6667663..53046f0 100644 --- a/src/views/device/borrow/borrwoApply.vue +++ b/src/views/device/borrow/borrwoApply.vue @@ -34,6 +34,7 @@ } }, { immediate: true, + deep: true, }) onUnmounted(() => { sessionStorage.setItem('deviceBorrowApply', current.value) diff --git a/src/api/device/borrow.ts b/src/api/device/borrow.ts index 28ca2ed..47a713e 100644 --- a/src/api/device/borrow.ts +++ b/src/api/device/borrow.ts @@ -25,3 +25,36 @@ data, }) } +// 设备借用申请编辑 +export function editApply(data: object) { + return request({ + url: '/equipmentApply/updateEquipmentApply', + method: 'post', + data, + }) +} +// 设备借用申请删除 +export function deleteApply(data: object) { + return request({ + url: '/equipmentApply/deleteEquipmentApply', + method: 'post', + data, + }) +} +// 设备借用申请提交 +export function submitApply(data: object) { + return request({ + url: '/equipmentApply/borrowEquipmentApply', + method: 'post', + data, + }) +} +// 设备借用申请导出 +export function exportApply(data: object) { + return request({ + url: '/equipmentApply/exportList', + method: 'post', + data, + responseType: 'blob', + }) +} diff --git a/src/api/device/stateManage.ts b/src/api/device/stateManage.ts new file mode 100644 index 0000000..ea79535 --- /dev/null +++ b/src/api/device/stateManage.ts @@ -0,0 +1,10 @@ +// 状态管理相关接口api +import request from '../index' +// 设备申请列表 +export function getApplyList(data: any) { + return request({ + url: `/meter/stateManage/stateManageList?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} diff --git a/src/components/DeptSelect/index.vue b/src/components/DeptSelect/index.vue index 2344541..ef7bd91 100644 --- a/src/components/DeptSelect/index.vue +++ b/src/components/DeptSelect/index.vue @@ -174,6 +174,7 @@ check-on-click-node filterable class="full-width-input" + :disabled="props.disabled" /> diff --git a/src/router/modules/device.ts b/src/router/modules/device.ts index 777ef0c..b10742f 100644 --- a/src/router/modules/device.ts +++ b/src/router/modules/device.ts @@ -85,7 +85,7 @@ name: 'standingBookDetail', component: () => import('@/views/device/standingBook/components/templateAdd.vue'), meta: { - title: '设备台账公用详情/编辑/新建', + title: '测量设备', icon: 'ep:key', sidebar: false, breadcrumb: true, @@ -98,15 +98,19 @@ switch (type) { case 'measureDevice': to.meta.activeMenu = '/standingBook/measureDevice' + to.meta.title = '测量设备' break case 'standardMatchDevice': to.meta.activeMenu = '/standingBook/standardMatchDevice' + to.meta.title = '校准/检定设备' break case 'adjustDevice': to.meta.activeMenu = '/standingBook/adjustDevice' + to.meta.title = '标准配套设备' break case 'measureTool': to.meta.activeMenu = '/standingBook/measureTool' + to.meta.title = '测量工装' break } next() @@ -124,7 +128,7 @@ }, { path: ':type/:id?', - name: 'fixedAssetsDetail', + name: 'fixedAssetsDetailType', component: () => import('@/views/device/standingBook/components/fixedAssetsAdd.vue'), meta: { title: '固定资产', @@ -309,7 +313,7 @@ name: 'stateManageDetail', component: () => import('@/views/device/stateManage/components/templateAdd.vue'), meta: { - title: '状态管理公用详情/编辑/新建', + title: '设备闲置申请', icon: 'ep:key', sidebar: false, breadcrumb: true, @@ -321,24 +325,31 @@ switch (type) { case 'unusedApply': to.meta.activeMenu = '/stateManage/unusedApply' + to.meta.title = '设备闲置申请' break case 'sealupApply': to.meta.activeMenu = '/stateManage/sealupApply' + to.meta.title = '设备封存申请' break case 'openApply': to.meta.activeMenu = '/stateManage/openApply' + to.meta.title = '设备启封申请' break case 'scrapApply': to.meta.activeMenu = '/stateManage/scrapApply' + to.meta.title = '设备报废申请' break case 'handleApply': to.meta.activeMenu = '/stateManage/handleApply' + to.meta.title = '设备处置申请' break case 'borrowapply': to.meta.activeMenu = '/borrow/borrowapply' + to.meta.title = '设备借用申请' break case 'borrowhandle': to.meta.activeMenu = '/borrow/borrowhandle' + to.meta.title = '设备借用处理' break } next() diff --git a/src/router/modules/measure.ts b/src/router/modules/measure.ts index 973fa04..710bdc2 100644 --- a/src/router/modules/measure.ts +++ b/src/router/modules/measure.ts @@ -107,21 +107,27 @@ switch (type) { case 'quality': to.meta.activeMenu = '/file/quality' + to.meta.title = '质量文件' break case 'rules': to.meta.activeMenu = '/file/rules' + to.meta.title = '规章制度' break case 'remind': to.meta.activeMenu = '/file/quality' + to.meta.title = '管理办法' break case 'manageMethod': to.meta.activeMenu = '/file/manageMethod' + to.meta.title = '管理办法' break case 'testingMethod': to.meta.activeMenu = '/file/testingMethod' + to.meta.title = '校准检测办法' break case 'measureRule': to.meta.activeMenu = '/file/measureRule' + to.meta.title = '计量规程' break } next() diff --git a/src/views/device/borrow/borrow-interface.ts b/src/views/device/borrow/borrow-interface.ts index 0cd02d3..66dd307 100644 --- a/src/views/device/borrow/borrow-interface.ts +++ b/src/views/device/borrow/borrow-interface.ts @@ -23,4 +23,5 @@ validDate: string // 有效日期 edit?: boolean equipmentName?: string + id?: string } diff --git a/src/views/device/borrow/borrwoApply.vue b/src/views/device/borrow/borrwoApply.vue index 6667663..53046f0 100644 --- a/src/views/device/borrow/borrwoApply.vue +++ b/src/views/device/borrow/borrwoApply.vue @@ -34,6 +34,7 @@ } }, { immediate: true, + deep: true, }) onUnmounted(() => { sessionStorage.setItem('deviceBorrowApply', current.value) diff --git a/src/views/device/borrow/components/applyList.vue b/src/views/device/borrow/components/applyList.vue index d420d62..35f3dec 100644 --- a/src/views/device/borrow/components/applyList.vue +++ b/src/views/device/borrow/components/applyList.vue @@ -1,8 +1,11 @@