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 @@