From dcfcf4b51d99d4cc3d99705725b68ad94011e8c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=83=91=E6=98=8E=E6=A2=81?= <2429105222@qq.com> Date: Mon, 14 Aug 2023 17:54:59 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=BE=E5=A4=87bug=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/inventory/deviceInspectTake.js | 9 + src/views/inventory/DeviceInspectMyTake.vue | 63 +++--- .../inventory/DeviceInspectPlanModify.vue | 6 +- src/views/inventory/DeviceInspectTakeAdd.vue | 192 ++++++++++-------- .../DeviceInspectTakeAuditModify.vue | 22 +- .../inventory/DeviceInspectTakeProjectSet.vue | 2 +- 6 files changed, 153 insertions(+), 141 deletions(-) diff --git a/src/api/inventory/deviceInspectTake.js b/src/api/inventory/deviceInspectTake.js index 5345a878..c88c9f8e 100644 --- a/src/api/inventory/deviceInspectTake.js +++ b/src/api/inventory/deviceInspectTake.js @@ -56,6 +56,15 @@ export function addDeviceInspecTakeDetail(params) { }); } +export function delectDeviceInspecTake(data) { + return axios({ + url: "/udiwms/inv/device/inspect/take/delectDeviceInspecTake", + method: "post", + data: data + }); +} + + diff --git a/src/views/inventory/DeviceInspectMyTake.vue b/src/views/inventory/DeviceInspectMyTake.vue index d0307447..3427c803 100644 --- a/src/views/inventory/DeviceInspectMyTake.vue +++ b/src/views/inventory/DeviceInspectMyTake.vue @@ -28,42 +28,18 @@ - - - - - - - - - + + + + + - + + @@ -104,8 +81,6 @@ {{ statusMap[scope.row.status] }} - - @@ -125,6 +100,13 @@ >详情 + 删除 + @@ -227,7 +209,11 @@ import {getDeptListByUser} from "@/api/auth/authDept"; import {findInvByUser} from "@/api/system/invSubWarehouse"; import deviceInspectTakeAuditModify from "@/views/inventory/DeviceInspectTakeAuditModify" -import {getDeviceInspectTakeList,selectDeviceInspecTakeDetail} from "@/api/inventory/deviceInspectTake"; +import { + delectDeviceInspecTake, + getDeviceInspectTakeList, + selectDeviceInspecTakeDetail +} from "@/api/inventory/deviceInspectTake"; import {previewImage, previewFile} from "@/api/purchase/supCompany"; import ElImageViewer from "element-ui/packages/image/src/image-viewer"; import DeviceInspectTakeDetail from "@/views/inventory/DeviceInspectTakeDetail" @@ -404,7 +390,7 @@ export default { deptCode: this.$store.getters.locDeptCode, invCode: null, code: null, - statusList: [0,1,2], + statusList: [0,1], page: 1, limit: 20, }; @@ -463,7 +449,6 @@ export default { this.formName="add" this.addTakeDetial = true; }, - deptChange() { this.invList = []; this.filterQuery.invCode = null; @@ -506,9 +491,9 @@ export default { cancelButtonText: '取消', type: 'warning' }).then(() => { - let params = {id: rowId}; + let params = {id: rowId.id}; this.loading = true; - deleteInspectPlan(params).then((res) => { + delectDeviceInspecTake(params).then((res) => { this.loading = false; if (res.code === 20000) { this.$message.success("删除成功!"); diff --git a/src/views/inventory/DeviceInspectPlanModify.vue b/src/views/inventory/DeviceInspectPlanModify.vue index 3c9d8f21..34a95fd6 100644 --- a/src/views/inventory/DeviceInspectPlanModify.vue +++ b/src/views/inventory/DeviceInspectPlanModify.vue @@ -98,15 +98,15 @@ - + - + - + diff --git a/src/views/inventory/DeviceInspectTakeAdd.vue b/src/views/inventory/DeviceInspectTakeAdd.vue index 07eff59c..5e8c9288 100644 --- a/src/views/inventory/DeviceInspectTakeAdd.vue +++ b/src/views/inventory/DeviceInspectTakeAdd.vue @@ -2,10 +2,10 @@
- + 选择设备 提交 @@ -15,7 +15,7 @@ - - - - + + - - - + > + + + @@ -158,7 +158,7 @@ @@ -171,10 +171,12 @@ - 选入 + + 选入 + - + 新增 @@ -196,7 +198,7 @@