diff --git a/src/api/eqpt/subpackage/certificate.ts b/src/api/eqpt/subpackage/certificate.ts index 99716ba..dd9d1fc 100644 --- a/src/api/eqpt/subpackage/certificate.ts +++ b/src/api/eqpt/subpackage/certificate.ts @@ -52,3 +52,11 @@ }, }) } +// 批量编辑 +export function batchEditCertificate(data: object) { + return request({ + url: '/subcontract/certificate/addOrUpdate/batch', + method: 'post', + data, + }) +} diff --git a/src/api/eqpt/subpackage/certificate.ts b/src/api/eqpt/subpackage/certificate.ts index 99716ba..dd9d1fc 100644 --- a/src/api/eqpt/subpackage/certificate.ts +++ b/src/api/eqpt/subpackage/certificate.ts @@ -52,3 +52,11 @@ }, }) } +// 批量编辑 +export function batchEditCertificate(data: object) { + return request({ + url: '/subcontract/certificate/addOrUpdate/batch', + method: 'post', + data, + }) +} diff --git a/src/router/modules/tested.ts b/src/router/modules/tested.ts index b4c589c..8dae58e 100644 --- a/src/router/modules/tested.ts +++ b/src/router/modules/tested.ts @@ -1286,6 +1286,18 @@ }, }, { + path: '/pcertificatepage/edit', + name: 'PcertificatePageUpdate', + component: () => import('@/views/tested/subpackage/certificate/components/editPage.vue'), + meta: { + title: '分包证书管理编辑', + auth: '/tested/subpackage/certificate', + sidebar: false, + breadcrumb: false, + activeMenu: '/pcertificatelist', + }, + }, + { path: '/pcertificatepage/:type', name: 'PcertificatePageEdit', component: () => import('@/views/tested/subpackage/certificate/components/edit.vue'), diff --git a/src/api/eqpt/subpackage/certificate.ts b/src/api/eqpt/subpackage/certificate.ts index 99716ba..dd9d1fc 100644 --- a/src/api/eqpt/subpackage/certificate.ts +++ b/src/api/eqpt/subpackage/certificate.ts @@ -52,3 +52,11 @@ }, }) } +// 批量编辑 +export function batchEditCertificate(data: object) { + return request({ + url: '/subcontract/certificate/addOrUpdate/batch', + method: 'post', + data, + }) +} diff --git a/src/router/modules/tested.ts b/src/router/modules/tested.ts index b4c589c..8dae58e 100644 --- a/src/router/modules/tested.ts +++ b/src/router/modules/tested.ts @@ -1286,6 +1286,18 @@ }, }, { + path: '/pcertificatepage/edit', + name: 'PcertificatePageUpdate', + component: () => import('@/views/tested/subpackage/certificate/components/editPage.vue'), + meta: { + title: '分包证书管理编辑', + auth: '/tested/subpackage/certificate', + sidebar: false, + breadcrumb: false, + activeMenu: '/pcertificatelist', + }, + }, + { path: '/pcertificatepage/:type', name: 'PcertificatePageEdit', component: () => import('@/views/tested/subpackage/certificate/components/edit.vue'), diff --git a/src/views/tested/MeasurementPlan/plan/components/selectDevice.vue b/src/views/tested/MeasurementPlan/plan/components/selectDevice.vue index 1e07bce..9a4ab8f 100644 --- a/src/views/tested/MeasurementPlan/plan/components/selectDevice.vue +++ b/src/views/tested/MeasurementPlan/plan/components/selectDevice.vue @@ -9,7 +9,9 @@ import { toTreeList } from '@/utils/structure' import { getDeviceNameList, getModelAllList, getModelList } from '@/api/eqpt/device/model' import { getAdminDept, getUserDept, getUserDeptSon, getUserList } from '@/api/system/user' +import { getLocationList } from '@/api/system/installation' import { getPostList } from '@/api/system/post' +import { getGroupList } from '@/api/eqpt/device/group' const $props = defineProps({ checkDestination: { type: Boolean, @@ -53,7 +55,12 @@ offset: 1, directorName: '', companyId: '', + installLocationId: '', usageStatusList: [], + groupId: '', + checkOrganization: '', + meterIdentify: '', + useSign: '', }) const loadingTable = ref(false) const list = ref([]) // 表格数据 @@ -109,6 +116,26 @@ align: 'center', }, { + text: '安装位置', + value: 'installLocation', + align: 'center', + }, + { + text: '详细位置', + value: 'installLocationExt', + align: 'center', + }, + { + text: '设备分组', + value: 'groupNames', + align: 'center', + }, + { + text: '检定(校准)机构', + value: 'checkOrganization', + align: 'center', + }, + { text: '负责人', value: 'directorName', align: 'center', @@ -123,11 +150,11 @@ value: 'usageStatusName', align: 'center', }, - { - text: '检定(校准)单位', - value: 'checkOrganization', - align: 'center', - }, + // { + // text: '检定(校准)单位', + // value: 'checkOrganization', + // align: 'center', + // }, { text: '证书有效期', value: 'certificateValid', @@ -197,11 +224,16 @@ offset: 1, companyId: '', usageStatusList: [], + installLocationId: '', + groupId: '', + checkOrganization: '', + meterIdentify: '', + useSign: '', } search() } // 页数发生变化后的操作,可能是页码变化,可能是每页容量变化,此函数必写 -const changePage = (val: { size?: number;page?: number }) => { +const changePage = (val: { size?: number; page?: number }) => { if (val && val.size) { listQuery.value.limit = val.size } @@ -274,12 +306,32 @@ // 使用状态列表 const usageStatusList = ref() const companyList = ref<{ id: string; value: string; name: string }[]>([]) +// 安装位置 +const installLocationList = ref([]) +// 分组 +const groupList = ref<{ id: string; value: string; name: string }[]>() +// 计量标识 +const meterIdentifyList = ref<{ id: string; value: string; name: string }[]>() const fetchDeptTree = () => { // getDeptTreeList().then((res) => { // if (res.data) { // 将列表转树结构 // deptTreeList.value = toTreeList(res.data, '0', true) // } // }) + getDictByCode('eqptMeterIdentify').then((res) => { + meterIdentifyList.value = res.data + meterIdentifyList.value?.push({ name: '空', id: '1', value: '66' }) + }) + // 分组 + getGroupList({ offset: 1, limit: 99999 }).then((res) => { + // console.log(res.data, '分组') + groupList.value = res.data.rows.map((item: any) => ({ name: item.groupName, id: item.id, value: item.id })) + }) + // 安装位置 + getLocationList().then((res) => { + // console.log(res.data, '安装位置') + installLocationList.value = res.data + }) // 在用信息 getDictByCode('eqptDeviceInUse').then((res) => { inUseList.value = res.data @@ -376,7 +428,7 @@