From fd1cd471df75868b39dfb460300c942f3009f3f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9B=B9=E7=A3=8A?= <45566618@qq.com> Date: Mon, 30 Jun 2025 09:47:35 +0800 Subject: [PATCH 1/8] =?UTF-8?q?TpLink=E8=B7=AF=E5=BE=84=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/iot/tplink/camera/camera.api.ts | 74 +++++++++---------- src/views/iot/tplink/plan/plan.api.ts | 20 ++--- .../iot/tplink/project/ProjectInfo.api.ts | 10 +-- src/views/iot/tplink/region/RegionInfo.api.ts | 20 ++--- 4 files changed, 62 insertions(+), 62 deletions(-) diff --git a/src/views/iot/tplink/camera/camera.api.ts b/src/views/iot/tplink/camera/camera.api.ts index b32ffef..50e1e82 100644 --- a/src/views/iot/tplink/camera/camera.api.ts +++ b/src/views/iot/tplink/camera/camera.api.ts @@ -1,43 +1,43 @@ import { defHttp } from '/@/utils/http/axios'; enum Api { - queryProjectTreeSync = '/iot/projectInfo/queryRegionTreeSync', - queryRegionTreeSync = '/iot/regionInfo/queryRegionTreeSync', - syncProject = '/iot/projectInfo/sync', - syncRegion = '/iot/regionInfo/sync', - list = '/iot/cameraInfo/list', - ipcCapability = '/iot/cameraInfo/getIpcCapability', - nuList = '/iot/cameraInfo/nuList', - edit = '/iot/cameraInfo/edit', - rebootDevice = '/iot/cameraInfo/rebootDevice', - previewUrl = '/iot/cameraInfo/getPreviewUrl', - getImageCommon = '/iot/cameraInfo/getImageCommon', - setImageCommon = '/iot/cameraInfo/setImageCommon', - getOsdCapability = '/iot/cameraInfo/getOsdCapability', - getOsd = '/iot/cameraInfo/getOsd', - setOsd = '/iot/cameraInfo/setOsd', - getTamperDet = '/iot/cameraInfo/getTamperDet', - setTamperDet = '/iot/cameraInfo/setTamperDet', - getTamperNotif = '/iot/cameraInfo/getTamperNotif', - setTamperNotif = '/iot/cameraInfo/setTamperNotif', - testAudio = '/iot/cameraInfo/testAudio', - getAlarmInfo = '/iot/cameraInfo/getAlarmInfo', - setAlarmInfo = '/iot/cameraInfo/setAlarmInfo', - getAlarmPlan = '/iot/cameraInfo/getAlarmPlan', - setAlarmPlan = '/iot/cameraInfo/setAlarmPlan', - getVideoParams = '/iot/cameraInfo/getVideoParams', - setVideoParams = '/iot/cameraInfo/setVideoParams', - configRecovery = '/iot/cameraInfo/configRecovery', - searchVideo = '/iot/cameraInfo/searchVideo', - getPlaybackUrlList = '/iot/cameraInfo/getPlaybackUrlList', - deletePlaybackChn = '/iot/cameraInfo/deletePlaybackChn', - getMultitransUrl = '/iot/cameraInfo/getMultitransUrl', - getRecordCfgs = '/iot/cameraInfo/getRecordCfgs', - setRecordCfgs = '/iot/cameraInfo/setRecordCfgs', - getBatchProgress = '/iot/cameraInfo/getBatchProgress', - uploadToServer = '/iot/cameraInfo/uploadToServer', - stopUploadToServer = '/iot/cameraInfo/stopUploadToServer', - getUploadToServerProcess = '/iot/cameraInfo/getUploadToServerProcess', + queryProjectTreeSync = '/iot/tplink/projectInfo/queryRegionTreeSync', + queryRegionTreeSync = '/iot/tplink/regionInfo/queryRegionTreeSync', + syncProject = '/iot/tplink/projectInfo/sync', + syncRegion = '/iot/tplink/regionInfo/sync', + list = '/iot/tplink/cameraInfo/list', + ipcCapability = '/iot/tplink/cameraInfo/getIpcCapability', + nuList = '/iot/tplink/cameraInfo/nuList', + edit = '/iot/tplink/cameraInfo/edit', + rebootDevice = '/iot/tplink/cameraInfo/rebootDevice', + previewUrl = '/iot/tplink/cameraInfo/getPreviewUrl', + getImageCommon = '/iot/tplink/cameraInfo/getImageCommon', + setImageCommon = '/iot/tplink/cameraInfo/setImageCommon', + getOsdCapability = '/iot/tplink/cameraInfo/getOsdCapability', + getOsd = '/iot/tplink/cameraInfo/getOsd', + setOsd = '/iot/tplink/cameraInfo/setOsd', + getTamperDet = '/iot/tplink/cameraInfo/getTamperDet', + setTamperDet = '/iot/tplink/cameraInfo/setTamperDet', + getTamperNotif = '/iot/tplink/cameraInfo/getTamperNotif', + setTamperNotif = '/iot/tplink/cameraInfo/setTamperNotif', + testAudio = '/iot/tplink/cameraInfo/testAudio', + getAlarmInfo = '/iot/tplink/cameraInfo/getAlarmInfo', + setAlarmInfo = '/iot/tplink/cameraInfo/setAlarmInfo', + getAlarmPlan = '/iot/tplink/cameraInfo/getAlarmPlan', + setAlarmPlan = '/iot/tplink/cameraInfo/setAlarmPlan', + getVideoParams = '/iot/tplink/cameraInfo/getVideoParams', + setVideoParams = '/iot/tplink/cameraInfo/setVideoParams', + configRecovery = '/iot/tplink/cameraInfo/configRecovery', + searchVideo = '/iot/tplink/cameraInfo/searchVideo', + getPlaybackUrlList = '/iot/tplink/cameraInfo/getPlaybackUrlList', + deletePlaybackChn = '/iot/tplink/cameraInfo/deletePlaybackChn', + getMultitransUrl = '/iot/tplink/cameraInfo/getMultitransUrl', + getRecordCfgs = '/iot/tplink/cameraInfo/getRecordCfgs', + setRecordCfgs = '/iot/tplink/cameraInfo/setRecordCfgs', + getBatchProgress = '/iot/tplink/cameraInfo/getBatchProgress', + uploadToServer = '/iot/tplink/cameraInfo/uploadToServer', + stopUploadToServer = '/iot/tplink/cameraInfo/stopUploadToServer', + getUploadToServerProcess = '/iot/tplink/cameraInfo/getUploadToServerProcess', } diff --git a/src/views/iot/tplink/plan/plan.api.ts b/src/views/iot/tplink/plan/plan.api.ts index 1567ff9..8209a67 100644 --- a/src/views/iot/tplink/plan/plan.api.ts +++ b/src/views/iot/tplink/plan/plan.api.ts @@ -2,16 +2,16 @@ import { defHttp } from '/@/utils/http/axios'; import {Modal} from "ant-design-vue"; enum Api { - queryProjectTreeSync = '/iot/projectInfo/queryRegionTreeSync', - queryRegionTreeSync = '/iot/regionInfo/queryRegionTreeSync', - queryTreeList = '/iot/cameraInfo/queryTreeList', - getStorageDevice = '/iot/cameraInfo/getStorageDevice', - getAllRecordPlans = '/iot/cameraInfo/getAllRecordPlans', - getRecordCfgs = '/iot/cameraInfo/getRecordCfgs', - addRecordCfgs = '/iot/cameraInfo/addRecordCfgs', - setRecordCfgs = '/iot/cameraInfo/setRecordCfgs', - delRecordCfgs = '/iot/cameraInfo/delRecordCfgs', - getBatchProgress = '/iot/cameraInfo/getBatchProgress', + queryProjectTreeSync = '/iot/tplink/projectInfo/queryRegionTreeSync', + queryRegionTreeSync = '/iot/tplink/regionInfo/queryRegionTreeSync', + queryTreeList = '/iot/tplink/cameraInfo/queryTreeList', + getStorageDevice = '/iot/tplink/cameraInfo/getStorageDevice', + getAllRecordPlans = '/iot/tplink/cameraInfo/getAllRecordPlans', + getRecordCfgs = '/iot/tplink/cameraInfo/getRecordCfgs', + addRecordCfgs = '/iot/tplink/cameraInfo/addRecordCfgs', + setRecordCfgs = '/iot/tplink/cameraInfo/setRecordCfgs', + delRecordCfgs = '/iot/tplink/cameraInfo/delRecordCfgs', + getBatchProgress = '/iot/tplink/cameraInfo/getBatchProgress', } /** diff --git a/src/views/iot/tplink/project/ProjectInfo.api.ts b/src/views/iot/tplink/project/ProjectInfo.api.ts index ace8090..09bcb52 100644 --- a/src/views/iot/tplink/project/ProjectInfo.api.ts +++ b/src/views/iot/tplink/project/ProjectInfo.api.ts @@ -1,11 +1,11 @@ import { defHttp } from '/@/utils/http/axios'; enum Api { - list = '/iot/projectInfo/list', - sync = '/iot/projectInfo/sync', - add = '/iot/projectInfo/add', - edit = '/iot/projectInfo/edit', - delete = '/iot/projectInfo/delete', + list = '/iot/tplink/projectInfo/list', + sync = '/iot/tplink/projectInfo/sync', + add = '/iot/tplink/projectInfo/add', + edit = '/iot/tplink/projectInfo/edit', + delete = '/iot/tplink/projectInfo/delete', } /** diff --git a/src/views/iot/tplink/region/RegionInfo.api.ts b/src/views/iot/tplink/region/RegionInfo.api.ts index dd74287..06284e3 100644 --- a/src/views/iot/tplink/region/RegionInfo.api.ts +++ b/src/views/iot/tplink/region/RegionInfo.api.ts @@ -1,16 +1,16 @@ import { defHttp } from '/@/utils/http/axios'; enum Api { - queryProjectTreeSync = '/iot/projectInfo/queryRegionTreeSync', - queryRegionTreeSync = '/iot/regionInfo/queryRegionTreeSync', - syncProject = '/iot/projectInfo/sync', - syncRegion = '/iot/regionInfo/sync', - syncRegionChildren = '/iot/regionInfo/syncChildren', - list = '/iot/regionInfo/list', - sync = '/iot/regionInfo/sync', - add = '/iot/regionInfo/add', - edit = '/iot/regionInfo/edit', - delete = '/iot/regionInfo/delete', + queryProjectTreeSync = '/iot/tplink/projectInfo/queryRegionTreeSync', + queryRegionTreeSync = '/iot/tplink/regionInfo/queryRegionTreeSync', + syncProject = '/iot/tplink/projectInfo/sync', + syncRegion = '/iot/tplink/regionInfo/sync', + syncRegionChildren = '/iot/tplink/regionInfo/syncChildren', + list = '/iot/tplink/regionInfo/list', + sync = '/iot/tplink/regionInfo/sync', + add = '/iot/tplink/regionInfo/add', + edit = '/iot/tplink/regionInfo/edit', + delete = '/iot/tplink/regionInfo/delete', queryChildrenByParentId = '/sys/sysDepart/queryChildrenByParentId', } From 18ea16555de929ccaec79435a26d3a3d1d461e1a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9B=B9=E7=A3=8A?= <45566618@qq.com> Date: Mon, 30 Jun 2025 10:13:28 +0800 Subject: [PATCH 2/8] =?UTF-8?q?=E6=B8=A9=E6=B9=BF=E5=BA=A6=E8=B7=AF?= =?UTF-8?q?=E5=BE=84=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/AlarmList.vue | 0 .../components/ApiLogAlarmList.vue | 0 .../components/ApiLogAlarmModal.vue | 0 .../components/ApiLogList.vue | 0 .../components/DeviceInfoDrawer.vue | 1 - .../{tq/wsdDevice => yiweilian}/humid.api.ts | 0 .../{tq/wsdDevice => yiweilian}/humid.data.ts | 0 .../iot/{tq/wsdDevice => yiweilian}/index.vue | 17 ++++++++--------- 8 files changed, 8 insertions(+), 10 deletions(-) rename src/views/iot/{tq/wsdDevice => yiweilian}/components/AlarmList.vue (100%) rename src/views/iot/{tq/wsdDevice => yiweilian}/components/ApiLogAlarmList.vue (100%) rename src/views/iot/{tq/wsdDevice => yiweilian}/components/ApiLogAlarmModal.vue (100%) rename src/views/iot/{tq/wsdDevice => yiweilian}/components/ApiLogList.vue (100%) rename src/views/iot/{tq/wsdDevice => yiweilian}/components/DeviceInfoDrawer.vue (97%) rename src/views/iot/{tq/wsdDevice => yiweilian}/humid.api.ts (100%) rename src/views/iot/{tq/wsdDevice => yiweilian}/humid.data.ts (100%) rename src/views/iot/{tq/wsdDevice => yiweilian}/index.vue (94%) diff --git a/src/views/iot/tq/wsdDevice/components/AlarmList.vue b/src/views/iot/yiweilian/components/AlarmList.vue similarity index 100% rename from src/views/iot/tq/wsdDevice/components/AlarmList.vue rename to src/views/iot/yiweilian/components/AlarmList.vue diff --git a/src/views/iot/tq/wsdDevice/components/ApiLogAlarmList.vue b/src/views/iot/yiweilian/components/ApiLogAlarmList.vue similarity index 100% rename from src/views/iot/tq/wsdDevice/components/ApiLogAlarmList.vue rename to src/views/iot/yiweilian/components/ApiLogAlarmList.vue diff --git a/src/views/iot/tq/wsdDevice/components/ApiLogAlarmModal.vue b/src/views/iot/yiweilian/components/ApiLogAlarmModal.vue similarity index 100% rename from src/views/iot/tq/wsdDevice/components/ApiLogAlarmModal.vue rename to src/views/iot/yiweilian/components/ApiLogAlarmModal.vue diff --git a/src/views/iot/tq/wsdDevice/components/ApiLogList.vue b/src/views/iot/yiweilian/components/ApiLogList.vue similarity index 100% rename from src/views/iot/tq/wsdDevice/components/ApiLogList.vue rename to src/views/iot/yiweilian/components/ApiLogList.vue diff --git a/src/views/iot/tq/wsdDevice/components/DeviceInfoDrawer.vue b/src/views/iot/yiweilian/components/DeviceInfoDrawer.vue similarity index 97% rename from src/views/iot/tq/wsdDevice/components/DeviceInfoDrawer.vue rename to src/views/iot/yiweilian/components/DeviceInfoDrawer.vue index 488314d..cf0bc2d 100644 --- a/src/views/iot/tq/wsdDevice/components/DeviceInfoDrawer.vue +++ b/src/views/iot/yiweilian/components/DeviceInfoDrawer.vue @@ -25,7 +25,6 @@ import {Modal} from "ant-design-vue"; import {ExclamationCircleOutlined} from "@ant-design/icons-vue"; import { formSchema } from "../humid.data"; import {insertDevice, updateDevice, getDeviceParameters} from '../humid.api'; -import {getMultitransUrl} from "@/views/iot/tplink/camera/camera.api"; // 声明Emits const emit = defineEmits(['success', 'register']); diff --git a/src/views/iot/tq/wsdDevice/humid.api.ts b/src/views/iot/yiweilian/humid.api.ts similarity index 100% rename from src/views/iot/tq/wsdDevice/humid.api.ts rename to src/views/iot/yiweilian/humid.api.ts diff --git a/src/views/iot/tq/wsdDevice/humid.data.ts b/src/views/iot/yiweilian/humid.data.ts similarity index 100% rename from src/views/iot/tq/wsdDevice/humid.data.ts rename to src/views/iot/yiweilian/humid.data.ts diff --git a/src/views/iot/tq/wsdDevice/index.vue b/src/views/iot/yiweilian/index.vue similarity index 94% rename from src/views/iot/tq/wsdDevice/index.vue rename to src/views/iot/yiweilian/index.vue index 4f2aefc..e976acd 100644 --- a/src/views/iot/tq/wsdDevice/index.vue +++ b/src/views/iot/yiweilian/index.vue @@ -78,13 +78,12 @@ import { defHttp } from '/@/utils/http/axios'; import { Statistic } from 'ant-design-vue'; import {Modal} from "ant-design-vue"; - import {list, eleReset, eleControl, eleRead } from './wsdDevice.api'; - import {deleteDevice, updateDeviceRealTime} from './humid.api'; -import { Pagination } from 'ant-design-vue'; - + import {updateDeviceRealTime} from './humid.api'; + import { Pagination } from 'ant-design-vue'; + import ApiLogAlarmModal from './components/ApiLogAlarmModal.vue' - import DeviceInfoDrawer from "./components/DeviceInfoDrawer.vue"; -import { set } from 'lodash-es'; + import DeviceInfoDrawer from "./components/DeviceInfoDrawer.vue"; + import { set } from 'lodash-es'; import {useDrawer} from "@/components/Drawer"; //注册drawer @@ -125,7 +124,7 @@ const pageParams = ref({ pageNo: 1, pageSize: 8 }) reload(); }, 4000); } - + // 编辑 async function handleEdit(record) { record["isUpdate"] = true; @@ -153,14 +152,14 @@ const pageParams = ref({ pageNo: 1, pageSize: 8 }) tableData.value = res; }); } - + // 自动请求并暴露内部方法 onMounted(() => { reload(); }); - + diff --git a/src/views/invoicing/nuInvoicingQgdInfo/NuInvoicingQgdInfo.api.ts b/src/views/invoicing/nuInvoicingQgdInfo/NuInvoicingQgdInfo.api.ts new file mode 100644 index 0000000..2c0d4d9 --- /dev/null +++ b/src/views/invoicing/nuInvoicingQgdInfo/NuInvoicingQgdInfo.api.ts @@ -0,0 +1,72 @@ +import { defHttp } from '/@/utils/http/axios'; +import { useMessage } from "/@/hooks/web/useMessage"; + +const { createConfirm } = useMessage(); + +enum Api { + list = '/nuInvoicingQgdInfo/nuInvoicingQgdInfo/list', + save='/nuInvoicingQgdInfo/nuInvoicingQgdInfo/add', + edit='/nuInvoicingQgdInfo/nuInvoicingQgdInfo/edit', + deleteOne = '/nuInvoicingQgdInfo/nuInvoicingQgdInfo/delete', + deleteBatch = '/nuInvoicingQgdInfo/nuInvoicingQgdInfo/deleteBatch', + importExcel = '/nuInvoicingQgdInfo/nuInvoicingQgdInfo/importExcel', + exportXls = '/nuInvoicingQgdInfo/nuInvoicingQgdInfo/exportXls', +} + +/** + * 导出api + * @param params + */ +export const getExportUrl = Api.exportXls; + +/** + * 导入api + */ +export const getImportUrl = Api.importExcel; + +/** + * 列表接口 + * @param params + */ +export const list = (params) => defHttp.get({ url: Api.list, params }); + +/** + * 删除单个 + * @param params + * @param handleSuccess + */ +export const deleteOne = (params,handleSuccess) => { + return defHttp.delete({url: Api.deleteOne, params}, {joinParamsToUrl: true}).then(() => { + handleSuccess(); + }); +} + +/** + * 批量删除 + * @param params + * @param handleSuccess + */ +export const batchDelete = (params, handleSuccess) => { + createConfirm({ + iconType: 'warning', + title: '确认删除', + content: '是否删除选中数据', + okText: '确认', + cancelText: '取消', + onOk: () => { + return defHttp.delete({url: Api.deleteBatch, data: params}, {joinParamsToUrl: true}).then(() => { + handleSuccess(); + }); + } + }); +} + +/** + * 保存或者更新 + * @param params + * @param isUpdate + */ +export const saveOrUpdate = (params, isUpdate) => { + let url = isUpdate ? Api.edit : Api.save; + return defHttp.post({ url: url, params }, { isTransformResponse: false }); +} diff --git a/src/views/invoicing/nuInvoicingQgdInfo/NuInvoicingQgdInfo.data.ts b/src/views/invoicing/nuInvoicingQgdInfo/NuInvoicingQgdInfo.data.ts new file mode 100644 index 0000000..07b2cb6 --- /dev/null +++ b/src/views/invoicing/nuInvoicingQgdInfo/NuInvoicingQgdInfo.data.ts @@ -0,0 +1,66 @@ +import {BasicColumn} from '/@/components/Table'; +import {FormSchema} from '/@/components/Table'; +import { rules} from '/@/utils/helper/validator'; +import { render } from '/@/utils/common/renderUtils'; +import { getWeekMonthQuarterYear } from '/@/utils'; +//列表数据 +export const columns: BasicColumn[] = [ + { + title: '请购单编号', + align: "center", + dataIndex: 'mainNo' + }, + { + title: '物料编码', + align: "center", + dataIndex: 'wlMaterialNo' + }, + { + title: '物料名称', + align: "center", + dataIndex: 'wlName' + }, + { + title: '采购单位', + align: "center", + dataIndex: 'wlUnits' + }, + { + title: '规格型号', + align: "center", + dataIndex: 'wlSpecificationModel' + }, + { + title: '上限', + align: "center", + dataIndex: 'wlUpperLimit' + }, + { + title: '下限', + align: "center", + dataIndex: 'wlLowerLimit' + }, + { + title: '供应商名称', + align: "center", + dataIndex: 'suppliersName' + }, + { + title: '请购数量', + align: "center", + dataIndex: 'purchaseQuantity' + }, +]; + +// 高级查询数据 +export const superQuerySchema = { + mainNo: {title: '请购单编号',order: 0,view: 'text', type: 'string',}, + wlMaterialNo: {title: '物料编码',order: 1,view: 'text', type: 'string',}, + wlName: {title: '物料名称',order: 2,view: 'text', type: 'string',}, + wlUnits: {title: '采购单位',order: 3,view: 'text', type: 'string',}, + wlSpecificationModel: {title: '规格型号',order: 4,view: 'text', type: 'string',}, + wlUpperLimit: {title: '上限',order: 5,view: 'text', type: 'string',}, + wlLowerLimit: {title: '下限',order: 6,view: 'text', type: 'string',}, + suppliersName: {title: '供应商名称',order: 7,view: 'text', type: 'string',}, + purchaseQuantity: {title: '请购数量',order: 8,view: 'number', type: 'number',}, +}; diff --git a/src/views/invoicing/nuInvoicingQgdInfo/NuInvoicingQgdInfoList.vue b/src/views/invoicing/nuInvoicingQgdInfo/NuInvoicingQgdInfoList.vue new file mode 100644 index 0000000..aa7d8e5 --- /dev/null +++ b/src/views/invoicing/nuInvoicingQgdInfo/NuInvoicingQgdInfoList.vue @@ -0,0 +1,235 @@ + + + + + diff --git a/src/views/invoicing/nuInvoicingQgdInfo/components/NuInvoicingQgdInfoForm.vue b/src/views/invoicing/nuInvoicingQgdInfo/components/NuInvoicingQgdInfoForm.vue new file mode 100644 index 0000000..d80d859 --- /dev/null +++ b/src/views/invoicing/nuInvoicingQgdInfo/components/NuInvoicingQgdInfoForm.vue @@ -0,0 +1,193 @@ + + + + + diff --git a/src/views/invoicing/nuInvoicingQgdInfo/components/NuInvoicingQgdInfoModal.vue b/src/views/invoicing/nuInvoicingQgdInfo/components/NuInvoicingQgdInfoModal.vue new file mode 100644 index 0000000..cf72eac --- /dev/null +++ b/src/views/invoicing/nuInvoicingQgdInfo/components/NuInvoicingQgdInfoModal.vue @@ -0,0 +1,77 @@ + + + + + + diff --git a/src/views/invoicing/nuInvoicingQgdMain/NuInvoicingQgdMain.api.ts b/src/views/invoicing/nuInvoicingQgdMain/NuInvoicingQgdMain.api.ts new file mode 100644 index 0000000..db4d157 --- /dev/null +++ b/src/views/invoicing/nuInvoicingQgdMain/NuInvoicingQgdMain.api.ts @@ -0,0 +1,72 @@ +import { defHttp } from '/@/utils/http/axios'; +import { useMessage } from "/@/hooks/web/useMessage"; + +const { createConfirm } = useMessage(); + +enum Api { + list = '/nuInvoicingQgdMain/nuInvoicingQgdMain/list', + save='/nuInvoicingQgdMain/nuInvoicingQgdMain/add', + edit='/nuInvoicingQgdMain/nuInvoicingQgdMain/edit', + deleteOne = '/nuInvoicingQgdMain/nuInvoicingQgdMain/delete', + deleteBatch = '/nuInvoicingQgdMain/nuInvoicingQgdMain/deleteBatch', + importExcel = '/nuInvoicingQgdMain/nuInvoicingQgdMain/importExcel', + exportXls = '/nuInvoicingQgdMain/nuInvoicingQgdMain/exportXls', +} + +/** + * 导出api + * @param params + */ +export const getExportUrl = Api.exportXls; + +/** + * 导入api + */ +export const getImportUrl = Api.importExcel; + +/** + * 列表接口 + * @param params + */ +export const list = (params) => defHttp.get({ url: Api.list, params }); + +/** + * 删除单个 + * @param params + * @param handleSuccess + */ +export const deleteOne = (params,handleSuccess) => { + return defHttp.delete({url: Api.deleteOne, params}, {joinParamsToUrl: true}).then(() => { + handleSuccess(); + }); +} + +/** + * 批量删除 + * @param params + * @param handleSuccess + */ +export const batchDelete = (params, handleSuccess) => { + createConfirm({ + iconType: 'warning', + title: '确认删除', + content: '是否删除选中数据', + okText: '确认', + cancelText: '取消', + onOk: () => { + return defHttp.delete({url: Api.deleteBatch, data: params}, {joinParamsToUrl: true}).then(() => { + handleSuccess(); + }); + } + }); +} + +/** + * 保存或者更新 + * @param params + * @param isUpdate + */ +export const saveOrUpdate = (params, isUpdate) => { + let url = isUpdate ? Api.edit : Api.save; + return defHttp.post({ url: url, params }, { isTransformResponse: false }); +} diff --git a/src/views/invoicing/nuInvoicingQgdMain/NuInvoicingQgdMain.data.ts b/src/views/invoicing/nuInvoicingQgdMain/NuInvoicingQgdMain.data.ts new file mode 100644 index 0000000..b54af88 --- /dev/null +++ b/src/views/invoicing/nuInvoicingQgdMain/NuInvoicingQgdMain.data.ts @@ -0,0 +1,24 @@ +import {BasicColumn} from '/@/components/Table'; +import {FormSchema} from '/@/components/Table'; +import { rules} from '/@/utils/helper/validator'; +import { render } from '/@/utils/common/renderUtils'; +import { getWeekMonthQuarterYear } from '/@/utils'; +//列表数据 +export const columns: BasicColumn[] = [ + { + title: '请购单号', + align: "center", + dataIndex: 'qgdNo' + }, + { + title: '请购状态 0未下单 1已下单', + align: "center", + dataIndex: 'status' + }, +]; + +// 高级查询数据 +export const superQuerySchema = { + qgdNo: {title: '请购单号',order: 0,view: 'number', type: 'number',}, + status: {title: '请购状态 0未下单 1已下单',order: 1,view: 'number', type: 'number',}, +}; diff --git a/src/views/invoicing/nuInvoicingQgdMain/NuInvoicingQgdMainList.vue b/src/views/invoicing/nuInvoicingQgdMain/NuInvoicingQgdMainList.vue new file mode 100644 index 0000000..6e46117 --- /dev/null +++ b/src/views/invoicing/nuInvoicingQgdMain/NuInvoicingQgdMainList.vue @@ -0,0 +1,235 @@ + + + + + diff --git a/src/views/invoicing/nuInvoicingQgdMain/components/NuInvoicingQgdMainForm.vue b/src/views/invoicing/nuInvoicingQgdMain/components/NuInvoicingQgdMainForm.vue new file mode 100644 index 0000000..c9d1aec --- /dev/null +++ b/src/views/invoicing/nuInvoicingQgdMain/components/NuInvoicingQgdMainForm.vue @@ -0,0 +1,151 @@ + + + + + diff --git a/src/views/invoicing/nuInvoicingQgdMain/components/NuInvoicingQgdMainModal.vue b/src/views/invoicing/nuInvoicingQgdMain/components/NuInvoicingQgdMainModal.vue new file mode 100644 index 0000000..c3b76e2 --- /dev/null +++ b/src/views/invoicing/nuInvoicingQgdMain/components/NuInvoicingQgdMainModal.vue @@ -0,0 +1,77 @@ + + + + + + diff --git a/src/views/iot/tq/electricity/apilog/ApiLogList.vue b/src/views/iot/tq/electricity/apilog/ApiLogList.vue index 42e8ee6..b68bc35 100644 --- a/src/views/iot/tq/electricity/apilog/ApiLogList.vue +++ b/src/views/iot/tq/electricity/apilog/ApiLogList.vue @@ -8,10 +8,10 @@ - + - + @@ -21,6 +21,7 @@ import { ref, reactive } from 'vue'; import NuIotTqApiRequestLogList from '/@/views/iot/tq/nuIotTqApiRequestLog/NuIotTqApiRequestLogList.vue'; + import NuIotTqApiRequestLogList2 from '/@/views/iot/tq/nuIotTqApiRequestLog/NuIotTqApiRequestLogList2.vue'; const activeKey= ref('3'); const dbsbInfo = ref({}); diff --git a/src/views/iot/tq/electricity/apilog/WaterApiLogList.vue b/src/views/iot/tq/electricity/apilog/WaterApiLogList.vue index d32a6d6..f953516 100644 --- a/src/views/iot/tq/electricity/apilog/WaterApiLogList.vue +++ b/src/views/iot/tq/electricity/apilog/WaterApiLogList.vue @@ -2,16 +2,16 @@
- + - + - + - +
@@ -20,7 +20,8 @@ + + diff --git a/src/views/iot/tq/nuIotTqApiRequestLog/NuIotTqApiRequestLogList3.vue b/src/views/iot/tq/nuIotTqApiRequestLog/NuIotTqApiRequestLogList3.vue new file mode 100644 index 0000000..3bbc3aa --- /dev/null +++ b/src/views/iot/tq/nuIotTqApiRequestLog/NuIotTqApiRequestLogList3.vue @@ -0,0 +1,224 @@ + + + + + diff --git a/src/views/iot/tq/nuIotTqApiRequestLog/components/NuIotTqApiRequestLogForm.vue b/src/views/iot/tq/nuIotTqApiRequestLog/components/NuIotTqApiRequestLogForm.vue index 4fe0075..e3addbc 100644 --- a/src/views/iot/tq/nuIotTqApiRequestLog/components/NuIotTqApiRequestLogForm.vue +++ b/src/views/iot/tq/nuIotTqApiRequestLog/components/NuIotTqApiRequestLogForm.vue @@ -5,8 +5,8 @@ - - + + diff --git a/src/views/iot/tq/water/index.vue b/src/views/iot/tq/water/index.vue index d320a07..ba7fec7 100644 --- a/src/views/iot/tq/water/index.vue +++ b/src/views/iot/tq/water/index.vue @@ -6,8 +6,14 @@ - - + + + + + + + + @@ -19,46 +25,63 @@ - - - {{item.nuName?item.nuName:'未配置'}} + {{item.nuId_dictText?item.nuId_dictText:'未配置'}} NUID: {{item.nuId?item.nuId:'未配置'}} diff --git a/src/views/iot/tq/water/index.vue b/src/views/iot/tq/water/index.vue index ba7fec7..e723f0a 100644 --- a/src/views/iot/tq/water/index.vue +++ b/src/views/iot/tq/water/index.vue @@ -7,13 +7,13 @@ - + - + @@ -38,7 +38,7 @@ - {{item.nuName?item.nuName:'未配置'}} + {{item.nuId_dictText?item.nuId_dictText:'未配置'}} NUID: {{item.nuId?item.nuId:'未配置'}} @@ -57,11 +57,11 @@ 抄表 -
+
开阀
-
+
关阀
@@ -103,6 +103,7 @@ import { Pagination } from 'ant-design-vue'; import ApiLogModal from "@/views/iot/tq/electricity/apilog/WaterApiLogModal.vue"; import JDictSelectTag from '/@/components/Form/src/jeecg/components/JDictSelectTag.vue'; import { set } from 'lodash-es'; +import JInput from "/@/components/Form/src/jeecg/components/JInput.vue"; const formRef = ref(); const queryParam = reactive({}); diff --git a/src/views/iot/yiweilian/components/AlarmList.vue b/src/views/iot/yiweilian/components/AlarmList.vue index 6e574ab..60ebd18 100644 --- a/src/views/iot/yiweilian/components/AlarmList.vue +++ b/src/views/iot/yiweilian/components/AlarmList.vue @@ -1,6 +1,6 @@