diff --git a/.env.development b/.env.development index 52b6555..35bd2f1 100644 --- a/.env.development +++ b/.env.development @@ -2,8 +2,8 @@ VITE_APP_TITLE = 计量信息系统 # 接口请求地址,会设置到 axios 的 baseURL 参数上 # VITE_APP_API_BASEURL = http://139.198.29.133:8089 -VITE_APP_API_BASEURL = http://111.198.10.15:21611 -# VITE_APP_API_BASEURL = http://192.168.8.107:5909 +# VITE_APP_API_BASEURL = http://111.198.10.15:21611 +VITE_APP_API_BASEURL = http://192.168.8.107:5909 # 调试工具,可设置 eruda 或 vconsole,如果不需要开启则留空 VITE_APP_DEBUG_TOOL = diff --git a/.env.development b/.env.development index 52b6555..35bd2f1 100644 --- a/.env.development +++ b/.env.development @@ -2,8 +2,8 @@ VITE_APP_TITLE = 计量信息系统 # 接口请求地址,会设置到 axios 的 baseURL 参数上 # VITE_APP_API_BASEURL = http://139.198.29.133:8089 -VITE_APP_API_BASEURL = http://111.198.10.15:21611 -# VITE_APP_API_BASEURL = http://192.168.8.107:5909 +# VITE_APP_API_BASEURL = http://111.198.10.15:21611 +VITE_APP_API_BASEURL = http://192.168.8.107:5909 # 调试工具,可设置 eruda 或 vconsole,如果不需要开启则留空 VITE_APP_DEBUG_TOOL = diff --git a/public/config/config.json b/public/config/config.json index 3bd0a89..0127d2f 100644 --- a/public/config/config.json +++ b/public/config/config.json @@ -1,4 +1,4 @@ { "title":"计量业务系统", - "baseUrl": "http://111.198.10.15:21611" + "baseUrl": "http://192.168.8.107:5909" } diff --git a/.env.development b/.env.development index 52b6555..35bd2f1 100644 --- a/.env.development +++ b/.env.development @@ -2,8 +2,8 @@ VITE_APP_TITLE = 计量信息系统 # 接口请求地址,会设置到 axios 的 baseURL 参数上 # VITE_APP_API_BASEURL = http://139.198.29.133:8089 -VITE_APP_API_BASEURL = http://111.198.10.15:21611 -# VITE_APP_API_BASEURL = http://192.168.8.107:5909 +# VITE_APP_API_BASEURL = http://111.198.10.15:21611 +VITE_APP_API_BASEURL = http://192.168.8.107:5909 # 调试工具,可设置 eruda 或 vconsole,如果不需要开启则留空 VITE_APP_DEBUG_TOOL = diff --git a/public/config/config.json b/public/config/config.json index 3bd0a89..0127d2f 100644 --- a/public/config/config.json +++ b/public/config/config.json @@ -1,4 +1,4 @@ { "title":"计量业务系统", - "baseUrl": "http://111.198.10.15:21611" + "baseUrl": "http://192.168.8.107:5909" } diff --git a/src/api/eqpt/subpackage/certificate.ts b/src/api/eqpt/subpackage/certificate.ts new file mode 100644 index 0000000..f6f3ea6 --- /dev/null +++ b/src/api/eqpt/subpackage/certificate.ts @@ -0,0 +1,27 @@ +/** + * 分包证书管理接口 + */ +import request from '@/api/index' +// 列表 +export function getListPage(params: object) { + return request({ + url: '/subcontract/certificate/listPage', + method: 'get', + params, + }) +} +// 新建编辑 +export function editCertificate(data: object) { + return request({ + url: '/subcontract/certificate/addOrUpdate', + method: 'post', + data, + }) +} +// 删除记录 +export function deleteCertificate(data: object) { + return request({ + url: `/subcontract/certificate/remove?id=${data.id}`, + method: 'post', + }) +} diff --git a/.env.development b/.env.development index 52b6555..35bd2f1 100644 --- a/.env.development +++ b/.env.development @@ -2,8 +2,8 @@ VITE_APP_TITLE = 计量信息系统 # 接口请求地址,会设置到 axios 的 baseURL 参数上 # VITE_APP_API_BASEURL = http://139.198.29.133:8089 -VITE_APP_API_BASEURL = http://111.198.10.15:21611 -# VITE_APP_API_BASEURL = http://192.168.8.107:5909 +# VITE_APP_API_BASEURL = http://111.198.10.15:21611 +VITE_APP_API_BASEURL = http://192.168.8.107:5909 # 调试工具,可设置 eruda 或 vconsole,如果不需要开启则留空 VITE_APP_DEBUG_TOOL = diff --git a/public/config/config.json b/public/config/config.json index 3bd0a89..0127d2f 100644 --- a/public/config/config.json +++ b/public/config/config.json @@ -1,4 +1,4 @@ { "title":"计量业务系统", - "baseUrl": "http://111.198.10.15:21611" + "baseUrl": "http://192.168.8.107:5909" } diff --git a/src/api/eqpt/subpackage/certificate.ts b/src/api/eqpt/subpackage/certificate.ts new file mode 100644 index 0000000..f6f3ea6 --- /dev/null +++ b/src/api/eqpt/subpackage/certificate.ts @@ -0,0 +1,27 @@ +/** + * 分包证书管理接口 + */ +import request from '@/api/index' +// 列表 +export function getListPage(params: object) { + return request({ + url: '/subcontract/certificate/listPage', + method: 'get', + params, + }) +} +// 新建编辑 +export function editCertificate(data: object) { + return request({ + url: '/subcontract/certificate/addOrUpdate', + method: 'post', + data, + }) +} +// 删除记录 +export function deleteCertificate(data: object) { + return request({ + url: `/subcontract/certificate/remove?id=${data.id}`, + method: 'post', + }) +} diff --git a/src/api/system/dept.ts b/src/api/system/dept.ts index befae46..363a960 100644 --- a/src/api/system/dept.ts +++ b/src/api/system/dept.ts @@ -41,7 +41,7 @@ // 添加组织机构 export function addDept(data: object) { return request({ - url: '/sys/extend/dept/add', + url: '/sys/dept/add', method: 'post', data, }) @@ -49,7 +49,7 @@ // 修改组织机构 export function updateDept(data: object) { return request({ - url: '/sys/extend/dept/update', + url: '/sys/dept/update', method: 'post', data, }) @@ -57,7 +57,7 @@ // 删除组织机构 export function delDept(id: string) { return request({ - url: '/sys/extend/dept/delete', + url: '/sys/dept/delete', method: 'post', data: { id, diff --git a/.env.development b/.env.development index 52b6555..35bd2f1 100644 --- a/.env.development +++ b/.env.development @@ -2,8 +2,8 @@ VITE_APP_TITLE = 计量信息系统 # 接口请求地址,会设置到 axios 的 baseURL 参数上 # VITE_APP_API_BASEURL = http://139.198.29.133:8089 -VITE_APP_API_BASEURL = http://111.198.10.15:21611 -# VITE_APP_API_BASEURL = http://192.168.8.107:5909 +# VITE_APP_API_BASEURL = http://111.198.10.15:21611 +VITE_APP_API_BASEURL = http://192.168.8.107:5909 # 调试工具,可设置 eruda 或 vconsole,如果不需要开启则留空 VITE_APP_DEBUG_TOOL = diff --git a/public/config/config.json b/public/config/config.json index 3bd0a89..0127d2f 100644 --- a/public/config/config.json +++ b/public/config/config.json @@ -1,4 +1,4 @@ { "title":"计量业务系统", - "baseUrl": "http://111.198.10.15:21611" + "baseUrl": "http://192.168.8.107:5909" } diff --git a/src/api/eqpt/subpackage/certificate.ts b/src/api/eqpt/subpackage/certificate.ts new file mode 100644 index 0000000..f6f3ea6 --- /dev/null +++ b/src/api/eqpt/subpackage/certificate.ts @@ -0,0 +1,27 @@ +/** + * 分包证书管理接口 + */ +import request from '@/api/index' +// 列表 +export function getListPage(params: object) { + return request({ + url: '/subcontract/certificate/listPage', + method: 'get', + params, + }) +} +// 新建编辑 +export function editCertificate(data: object) { + return request({ + url: '/subcontract/certificate/addOrUpdate', + method: 'post', + data, + }) +} +// 删除记录 +export function deleteCertificate(data: object) { + return request({ + url: `/subcontract/certificate/remove?id=${data.id}`, + method: 'post', + }) +} diff --git a/src/api/system/dept.ts b/src/api/system/dept.ts index befae46..363a960 100644 --- a/src/api/system/dept.ts +++ b/src/api/system/dept.ts @@ -41,7 +41,7 @@ // 添加组织机构 export function addDept(data: object) { return request({ - url: '/sys/extend/dept/add', + url: '/sys/dept/add', method: 'post', data, }) @@ -49,7 +49,7 @@ // 修改组织机构 export function updateDept(data: object) { return request({ - url: '/sys/extend/dept/update', + url: '/sys/dept/update', method: 'post', data, }) @@ -57,7 +57,7 @@ // 删除组织机构 export function delDept(id: string) { return request({ - url: '/sys/extend/dept/delete', + url: '/sys/dept/delete', method: 'post', data: { id, diff --git a/src/router/modules/tested.ts b/src/router/modules/tested.ts index bf750fb..c91417a 100644 --- a/src/router/modules/tested.ts +++ b/src/router/modules/tested.ts @@ -1038,6 +1038,18 @@ activeMenu: '/pcertificatelist', }, }, + { + path: '/pcertificatepage/:type', + name: 'PcertificatePageEdit', + component: () => import('@/views/tested/subpackage/certificate/components/edit.vue'), + meta: { + title: '分包证书管理编辑', + auth: '/tested/subpackage/certificate', + sidebar: false, + breadcrumb: false, + activeMenu: '/pcertificatelist', + }, + }, ], }, ], diff --git a/.env.development b/.env.development index 52b6555..35bd2f1 100644 --- a/.env.development +++ b/.env.development @@ -2,8 +2,8 @@ VITE_APP_TITLE = 计量信息系统 # 接口请求地址,会设置到 axios 的 baseURL 参数上 # VITE_APP_API_BASEURL = http://139.198.29.133:8089 -VITE_APP_API_BASEURL = http://111.198.10.15:21611 -# VITE_APP_API_BASEURL = http://192.168.8.107:5909 +# VITE_APP_API_BASEURL = http://111.198.10.15:21611 +VITE_APP_API_BASEURL = http://192.168.8.107:5909 # 调试工具,可设置 eruda 或 vconsole,如果不需要开启则留空 VITE_APP_DEBUG_TOOL = diff --git a/public/config/config.json b/public/config/config.json index 3bd0a89..0127d2f 100644 --- a/public/config/config.json +++ b/public/config/config.json @@ -1,4 +1,4 @@ { "title":"计量业务系统", - "baseUrl": "http://111.198.10.15:21611" + "baseUrl": "http://192.168.8.107:5909" } diff --git a/src/api/eqpt/subpackage/certificate.ts b/src/api/eqpt/subpackage/certificate.ts new file mode 100644 index 0000000..f6f3ea6 --- /dev/null +++ b/src/api/eqpt/subpackage/certificate.ts @@ -0,0 +1,27 @@ +/** + * 分包证书管理接口 + */ +import request from '@/api/index' +// 列表 +export function getListPage(params: object) { + return request({ + url: '/subcontract/certificate/listPage', + method: 'get', + params, + }) +} +// 新建编辑 +export function editCertificate(data: object) { + return request({ + url: '/subcontract/certificate/addOrUpdate', + method: 'post', + data, + }) +} +// 删除记录 +export function deleteCertificate(data: object) { + return request({ + url: `/subcontract/certificate/remove?id=${data.id}`, + method: 'post', + }) +} diff --git a/src/api/system/dept.ts b/src/api/system/dept.ts index befae46..363a960 100644 --- a/src/api/system/dept.ts +++ b/src/api/system/dept.ts @@ -41,7 +41,7 @@ // 添加组织机构 export function addDept(data: object) { return request({ - url: '/sys/extend/dept/add', + url: '/sys/dept/add', method: 'post', data, }) @@ -49,7 +49,7 @@ // 修改组织机构 export function updateDept(data: object) { return request({ - url: '/sys/extend/dept/update', + url: '/sys/dept/update', method: 'post', data, }) @@ -57,7 +57,7 @@ // 删除组织机构 export function delDept(id: string) { return request({ - url: '/sys/extend/dept/delete', + url: '/sys/dept/delete', method: 'post', data: { id, diff --git a/src/router/modules/tested.ts b/src/router/modules/tested.ts index bf750fb..c91417a 100644 --- a/src/router/modules/tested.ts +++ b/src/router/modules/tested.ts @@ -1038,6 +1038,18 @@ activeMenu: '/pcertificatelist', }, }, + { + path: '/pcertificatepage/:type', + name: 'PcertificatePageEdit', + component: () => import('@/views/tested/subpackage/certificate/components/edit.vue'), + meta: { + title: '分包证书管理编辑', + auth: '/tested/subpackage/certificate', + sidebar: false, + breadcrumb: false, + activeMenu: '/pcertificatelist', + }, + }, ], }, ], diff --git a/src/views/tested/MeasurementPlan/early/components/table.vue b/src/views/tested/MeasurementPlan/early/components/table.vue index 1e4546b..9565d50 100644 --- a/src/views/tested/MeasurementPlan/early/components/table.vue +++ b/src/views/tested/MeasurementPlan/early/components/table.vue @@ -3,6 +3,7 @@ import { ElMessage, ElMessageBox } from 'element-plus' import selectPlan from './selelectPlan.vue' import selectDevice from '@/views/tested/MeasurementPlan/plan/components/selectDevice.vue' +import selectDeviceSinge from '@/views/tested/device/group/components/selectDevice.vue' import { useCheckList } from '@/utils/useCheckList' const $props = defineProps({ data: { @@ -131,12 +132,13 @@ } // 点击设备名称输入框 const deviceRef = ref() +const deviceSingeRef = ref() const planRef = ref() // 选中的行 const selectRow = ref() const select = (text: string, index: any) => { if (text === '统一编号') { - deviceRef.value.initDialog(false) + deviceSingeRef.value.initDialog() selectRow.value = index } if (text === '关联计划') { @@ -209,6 +211,7 @@ diff --git a/src/views/tested/subpackage/directory/components/capacityTable.vue b/src/views/tested/subpackage/directory/components/capacityTable.vue index bde4861..a53f845 100644 --- a/src/views/tested/subpackage/directory/components/capacityTable.vue +++ b/src/views/tested/subpackage/directory/components/capacityTable.vue @@ -1,5 +1,5 @@ - + + + + diff --git a/src/views/tested/subpackage/certificate/index.vue b/src/views/tested/subpackage/certificate/index.vue index 37d81b4..a99d6e8 100644 --- a/src/views/tested/subpackage/certificate/index.vue +++ b/src/views/tested/subpackage/certificate/index.vue @@ -1,54 +1,68 @@ - diff --git a/src/views/tested/subpackage/directory/components/capacityTable.vue b/src/views/tested/subpackage/directory/components/capacityTable.vue index bde4861..a53f845 100644 --- a/src/views/tested/subpackage/directory/components/capacityTable.vue +++ b/src/views/tested/subpackage/directory/components/capacityTable.vue @@ -1,5 +1,5 @@ - + + + + diff --git a/src/views/tested/subpackage/certificate/index.vue b/src/views/tested/subpackage/certificate/index.vue index 37d81b4..a99d6e8 100644 --- a/src/views/tested/subpackage/certificate/index.vue +++ b/src/views/tested/subpackage/certificate/index.vue @@ -1,54 +1,68 @@ - diff --git a/src/views/tested/subpackage/directory/components/capacityTable.vue b/src/views/tested/subpackage/directory/components/capacityTable.vue index bde4861..a53f845 100644 --- a/src/views/tested/subpackage/directory/components/capacityTable.vue +++ b/src/views/tested/subpackage/directory/components/capacityTable.vue @@ -1,5 +1,5 @@ - + + + + diff --git a/src/views/tested/subpackage/certificate/index.vue b/src/views/tested/subpackage/certificate/index.vue index 37d81b4..a99d6e8 100644 --- a/src/views/tested/subpackage/certificate/index.vue +++ b/src/views/tested/subpackage/certificate/index.vue @@ -1,54 +1,68 @@ - diff --git a/src/views/tested/subpackage/directory/components/capacityTable.vue b/src/views/tested/subpackage/directory/components/capacityTable.vue index bde4861..a53f845 100644 --- a/src/views/tested/subpackage/directory/components/capacityTable.vue +++ b/src/views/tested/subpackage/directory/components/capacityTable.vue @@ -1,5 +1,5 @@ - + + + + diff --git a/src/views/tested/subpackage/certificate/index.vue b/src/views/tested/subpackage/certificate/index.vue index 37d81b4..a99d6e8 100644 --- a/src/views/tested/subpackage/certificate/index.vue +++ b/src/views/tested/subpackage/certificate/index.vue @@ -1,54 +1,68 @@ - diff --git a/src/views/tested/subpackage/directory/components/capacityTable.vue b/src/views/tested/subpackage/directory/components/capacityTable.vue index bde4861..a53f845 100644 --- a/src/views/tested/subpackage/directory/components/capacityTable.vue +++ b/src/views/tested/subpackage/directory/components/capacityTable.vue @@ -1,5 +1,5 @@ -