From 782c43b0580af38e617ce113aa4f12e341333721 Mon Sep 17 00:00:00 2001 From: x_z Date: Tue, 28 Mar 2023 17:32:35 +0800 Subject: [PATCH] =?UTF-8?q?1.=E4=BF=AE=E6=94=B9=E8=AE=BE=E5=A4=87=E5=B7=A1?= =?UTF-8?q?=E6=A3=80=E8=AE=A1=E5=88=92=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/inventory/deviceInspectPlan.js | 41 ++++ src/views/inventory/DeptDeviceDetail.vue | 3 +- ...anAudit.vue => DeviceInspectPlanAudit.vue} | 0 ...ted.vue => DeviceInspectPlanCompleted.vue} | 12 -- ...ctionPlan.vue => DeviceInspectPlanNew.vue} | 193 +++++++++--------- ...yDialog.vue => InspectSetModifyDialog.vue} | 0 6 files changed, 139 insertions(+), 110 deletions(-) create mode 100644 src/api/inventory/deviceInspectPlan.js rename src/views/inventory/{InspectionPlanAudit.vue => DeviceInspectPlanAudit.vue} (100%) rename src/views/inventory/{InspectionPlanCompleted.vue => DeviceInspectPlanCompleted.vue} (93%) rename src/views/inventory/{InspectionPlan.vue => DeviceInspectPlanNew.vue} (56%) rename src/views/inventory/{inspectSetModifyDialog.vue => InspectSetModifyDialog.vue} (100%) diff --git a/src/api/inventory/deviceInspectPlan.js b/src/api/inventory/deviceInspectPlan.js new file mode 100644 index 00000000..6720ef61 --- /dev/null +++ b/src/api/inventory/deviceInspectPlan.js @@ -0,0 +1,41 @@ +import axios from "@/utils/request"; + +export function getDeviceInspectPlanList(params) { + return axios({ + url: "/udiwms/inv/device/inspect/plan/filter", + method: "get", + prams: params + }); +} + +export function saveDeviceInspectPlan(data, formName) { + return axios({ + url: formName === "add" ? "/udiwms/inv/device/inspect/plan/addInspectPlan" : "/udiwms/inv/device/inspect/plan/updateInspectPlan", + method: "post", + data: data + }); +} + +export function submitAudit(data){ + return axios({ + url: "/udiwms/inv/device/inspect/plan/submitAudit", + method: "post", + data: data + }); +} + +export function updateStatus(data) { + return axios({ + url: "/udiwms/inv/device/inspect/plan/updateStatus", + method: "post", + data: data + }); +} + +export function deleteInspectPlan(data){ + return axios({ + url: "/udiwms/inv/device/inspect/plan/deleteInspectPlan", + method: "post", + data: data + }); +} diff --git a/src/views/inventory/DeptDeviceDetail.vue b/src/views/inventory/DeptDeviceDetail.vue index ce9298f1..aeab5bc4 100644 --- a/src/views/inventory/DeptDeviceDetail.vue +++ b/src/views/inventory/DeptDeviceDetail.vue @@ -206,11 +206,10 @@