diff --git a/src/api/common/index.ts b/src/api/common/index.ts new file mode 100644 index 0000000..da54042 --- /dev/null +++ b/src/api/common/index.ts @@ -0,0 +1,13 @@ +import { defHttp } from '@/utils/http/axios'; + +enum Api { + getHangzhouRegions = '/air/stationInfo/getHangzhouRegions', + getStationList = '/air/deviceInfo/getStationList', +} + +export function getStationList() { + return defHttp.get({ url: Api.getStationList }); +} +export function getHangzhouRegions() { + return defHttp.get({ url: Api.getHangzhouRegions }); +} \ No newline at end of file diff --git a/src/components/registerGlobComp.ts b/src/components/registerGlobComp.ts index 5a8e591..251b592 100644 --- a/src/components/registerGlobComp.ts +++ b/src/components/registerGlobComp.ts @@ -1,8 +1,9 @@ import type { App } from 'vue'; -import { Button } from './Button'; -import { Input, Layout } from 'ant-design-vue'; +// import { Button } from './Button'; +// import { Input, Layout } from 'ant-design-vue'; import VXETable from 'vxe-table'; +import Antd from 'ant-design-vue'; export function registerGlobComp(app: App) { - app.use(Input).use(Button).use(Layout).use(VXETable); + app.use(Antd).use(VXETable); } diff --git a/src/views/checkManage/order/addModal.vue b/src/views/checkManage/order/addModal.vue new file mode 100644 index 0000000..bacc320 --- /dev/null +++ b/src/views/checkManage/order/addModal.vue @@ -0,0 +1,110 @@ + + + + + diff --git a/src/views/checkManage/order/api.ts b/src/views/checkManage/order/api.ts new file mode 100644 index 0000000..5889322 --- /dev/null +++ b/src/views/checkManage/order/api.ts @@ -0,0 +1,28 @@ +import { ID, IDS } from '@/api/base'; +import { defHttp } from '@/utils/http/axios'; + +enum Api { + root = 'air/stationInfo', + list = 'air/stationInfo/list', +} + +export function list(params: any) { + return defHttp.get({ url: Api.list, params }); +} + +export function getInfo(id: ID) { + return defHttp.get({ url: `${Api.root}/${id}` }); +} + +export function add(data: any) { + return defHttp.post({ url: Api.root, data }); +} + +export function update(data: any) { + return defHttp.put({ url: Api.root, data }); +} + +export function removeByIds(ids: IDS) { + return defHttp.deleteWithMsg({ url: `${Api.root}/${ids.join(',')}` }); +} + diff --git a/src/views/checkManage/order/data.ts b/src/views/checkManage/order/data.ts new file mode 100644 index 0000000..c48ebe8 --- /dev/null +++ b/src/views/checkManage/order/data.ts @@ -0,0 +1,35 @@ +import { BasicColumn } from '@/components/Table'; +import { FormSchema } from '@/components/Form'; + +export const formSchemas: FormSchema[] = []; + +export const columns: BasicColumn[] = [ + { + title: '工单编号', + dataIndex: 'orderNum', + }, + { + title: '工作日期', + dataIndex: 'workDate', + }, + { + title: '子站名称', + dataIndex: 'station', + }, + { + title: '子站状态', + dataIndex: 'status', + }, + { + title: '所属区域', + dataIndex: 'area', + }, + { + title: '监理类型', + dataIndex: 'monitorType', + }, + { + title: '监理公司', + dataIndex: 'monitorCompany', + }, +]; diff --git a/src/views/checkManage/order/index.vue b/src/views/checkManage/order/index.vue new file mode 100644 index 0000000..971e1c5 --- /dev/null +++ b/src/views/checkManage/order/index.vue @@ -0,0 +1,53 @@ + + + + + diff --git a/src/views/checkManage/plan/addModal.vue b/src/views/checkManage/plan/addModal.vue new file mode 100644 index 0000000..8d4c86c --- /dev/null +++ b/src/views/checkManage/plan/addModal.vue @@ -0,0 +1,141 @@ + + + + + diff --git a/src/views/checkManage/plan/api.ts b/src/views/checkManage/plan/api.ts new file mode 100644 index 0000000..88889c4 --- /dev/null +++ b/src/views/checkManage/plan/api.ts @@ -0,0 +1,28 @@ +import { ID, IDS } from '@/api/base'; +import { defHttp } from '@/utils/http/axios'; + +enum Api { + root = '/air/stationInfo', + list = '/air/stationInfo/list', +} + +export function list(params: any) { + return defHttp.get({ url: Api.list, params }); +} + +export function getInfo(id: ID) { + return defHttp.get({ url: `${Api.root}/${id}` }); +} + +export function add(data: any) { + return defHttp.post({ url: Api.root, data }); +} + +export function update(data: any) { + return defHttp.put({ url: Api.root, data }); +} + +export function removeByIds(ids: IDS) { + return defHttp.deleteWithMsg({ url: `${Api.root}/${ids.join(',')}` }); +} + diff --git a/src/views/checkManage/plan/data.ts b/src/views/checkManage/plan/data.ts new file mode 100644 index 0000000..0901d7a --- /dev/null +++ b/src/views/checkManage/plan/data.ts @@ -0,0 +1,43 @@ +import { BasicColumn } from '@/components/Table'; +import { FormSchema } from '@/components/Form'; + +export const formSchemas: FormSchema[] = []; + +export const columns: BasicColumn[] = [ + { + title: '计划号', + dataIndex: 'planNum', + }, + { + title: '计划日期', + dataIndex: 'planDate', + }, + { + title: '子站名称', + dataIndex: 'station', + }, + { + title: '子站状态', + dataIndex: 'status', + }, + { + title: '所属区域', + dataIndex: 'area', + }, + { + title: '运维公司', + dataIndex: 'ioCompany', + }, + { + title: '运维人员', + dataIndex: 'ioPerson', + }, + { + title: '监理类型', + dataIndex: 'monitorType', + }, + { + title: '监理公司', + dataIndex: 'monitorCompany', + }, +]; diff --git a/src/views/checkManage/plan/index.vue b/src/views/checkManage/plan/index.vue new file mode 100644 index 0000000..d794726 --- /dev/null +++ b/src/views/checkManage/plan/index.vue @@ -0,0 +1,53 @@ + + + + + diff --git a/src/views/station/device/api.ts b/src/views/station/device/api.ts index 1b81e22..c3fbffd 100644 --- a/src/views/station/device/api.ts +++ b/src/views/station/device/api.ts @@ -1,22 +1,15 @@ -import { ID, IDS, commonExport } from '@/api/base'; +import { ID, IDS } from '@/api/base'; import { defHttp } from '@/utils/http/axios'; enum Api { - root = '/platform/matrialInfo', - list = '/platform/matrialInfo/list', - tree = '/platform/projectCategoryPoint/queryAll', - export = '/workflow/leave/export', + root = '/air/deviceInfo', + list = '/air/deviceInfo/list', + getStationList = '/air/deviceInfo/getStationList', } export function list(params: any) { return defHttp.get({ url: Api.list, params }); } -export function tree() { - return defHttp.get({ url: Api.tree }); -} -export function exportExcel(data: any) { - return commonExport(Api.export, data); -} export function getInfo(id: ID) { return defHttp.get({ url: `${Api.root}/${id}` }); @@ -34,3 +27,6 @@ export function removeByIds(ids: IDS) { return defHttp.deleteWithMsg({ url: `${Api.root}/${ids.join(',')}` }); } +export function getStationList() { + return defHttp.get({ url: Api.getStationList }); +} \ No newline at end of file diff --git a/src/views/station/device/data.ts b/src/views/station/device/data.ts index a19a6cd..2ee6c93 100644 --- a/src/views/station/device/data.ts +++ b/src/views/station/device/data.ts @@ -3,46 +3,68 @@ import { FormSchema } from '@/components/Form'; export const formSchemas: FormSchema[] = [ { - field: 'name', - label: '名称', - component: 'Input', + field: 'area', + label: '所在区域', + component: 'Select', componentProps: { - placeholder: '请输入', + options: [], + }, + }, + { + field: 'station', + label: '站点', + component: 'Select', + componentProps: { + options: [], + }, + }, + { + field: 'superviseCompany', + label: '监理公司', + component: 'Select', + componentProps: { + options: [{ + value:'宁波国研信息科技有限公司' + }], }, }, ]; export const columns: BasicColumn[] = [ { - title: '名称', - dataIndex: 'name', + title: '站点', + dataIndex: 'station', }, { - title: '规格', - dataIndex: 'standards', + title: '所属区域', + dataIndex: 'area', }, { - title: '单价(元)', - dataIndex: 'price', + title: '设备名称', + dataIndex: 'device', }, { - title: '数量', - dataIndex: 'amount', + title: '设备型号', + dataIndex: 'model', }, { - title: '单位', - dataIndex: 'unit', + title: '生产厂家', + dataIndex: 'manufacturer', }, { - title: '状态', - dataIndex: 'status', + title: '生产日期', + dataIndex: 'manufactureDate', }, { - title: '创建日期', - dataIndex: 'createTime', + title: '序列号', + dataIndex: 'number', }, { - title: '备注', - dataIndex: 'remark', + title: '检测物', + dataIndex: 'testSubstance', + }, + { + title: '状态', + dataIndex: 'status', }, ]; diff --git a/src/views/station/device/index.vue b/src/views/station/device/index.vue index ca26ac0..5e4ebd2 100644 --- a/src/views/station/device/index.vue +++ b/src/views/station/device/index.vue @@ -1,41 +1,39 @@ diff --git a/src/views/station/info/api.ts b/src/views/station/info/api.ts index 1b81e22..88889c4 100644 --- a/src/views/station/info/api.ts +++ b/src/views/station/info/api.ts @@ -1,22 +1,14 @@ -import { ID, IDS, commonExport } from '@/api/base'; +import { ID, IDS } from '@/api/base'; import { defHttp } from '@/utils/http/axios'; enum Api { - root = '/platform/matrialInfo', - list = '/platform/matrialInfo/list', - tree = '/platform/projectCategoryPoint/queryAll', - export = '/workflow/leave/export', + root = '/air/stationInfo', + list = '/air/stationInfo/list', } export function list(params: any) { return defHttp.get({ url: Api.list, params }); } -export function tree() { - return defHttp.get({ url: Api.tree }); -} -export function exportExcel(data: any) { - return commonExport(Api.export, data); -} export function getInfo(id: ID) { return defHttp.get({ url: `${Api.root}/${id}` }); diff --git a/src/views/station/info/detailDrawer.vue b/src/views/station/info/detailDrawer.vue index 3a000e5..f550ca3 100644 --- a/src/views/station/info/detailDrawer.vue +++ b/src/views/station/info/detailDrawer.vue @@ -76,10 +76,10 @@ const visible = ref(false); const showDrawer = async (id) => { visible.value = true; - // const data = await getInfo(id); - // for (let i in detail) { - // detail[i] = data[i]; - // } + const data = await getInfo(id); + for (let i in detail) { + detail[i] = data[i]; + } console.log(detail); }; diff --git a/src/views/station/info/index.vue b/src/views/station/info/index.vue index d0ad9ab..d24c277 100644 --- a/src/views/station/info/index.vue +++ b/src/views/station/info/index.vue @@ -4,7 +4,7 @@