From d1a260057405bfc7b8e32c963b19d173f94a6c27 Mon Sep 17 00:00:00 2001 From: bb_pan Date: Fri, 12 Sep 2025 18:27:07 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9D=90=E6=96=99=E7=AB=99-=E7=8F=AD=E7=BB=84?= =?UTF-8?q?=E8=BF=9B=E5=87=BA=E5=9C=BA=E6=9F=A5=E8=AF=A2,=E5=B7=B2?= =?UTF-8?q?=E5=87=BA=E5=BA=93=E5=88=A0=E9=99=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/materialsStation/index.js | 16 +- .../equipment/teamEntrance/index.vue | 202 ++++++++++++++++++ .../toolsLease/apply/component/homeApply.vue | 2 +- .../outBound/component/homeApply.vue | 17 +- 4 files changed, 226 insertions(+), 11 deletions(-) create mode 100644 src/views/materialsStation/equipment/teamEntrance/index.vue diff --git a/src/api/materialsStation/index.js b/src/api/materialsStation/index.js index b602827a..053a0453 100644 --- a/src/api/materialsStation/index.js +++ b/src/api/materialsStation/index.js @@ -284,10 +284,11 @@ export function getPickListApi(data) { } // 领料申请-删除 -export function applyRemove(ids) { +export function applyRemove(data) { return request({ - url: '/material/material_lease_apply_info/' + ids, - method: 'delete' + url: '/material/material_lease_apply_info/delete', + method: 'post', + data }) } @@ -700,4 +701,13 @@ export function getProTotalListApi(data) { method: 'get', params: data }) +} + +// 班组进出场查询 +export function getTeamInOrOutInfoApi(data) { + return request({ + url: '/material/material_maMachine/getTeamInOrOutInfo', + method: 'get', + params: data + }) } \ No newline at end of file diff --git a/src/views/materialsStation/equipment/teamEntrance/index.vue b/src/views/materialsStation/equipment/teamEntrance/index.vue new file mode 100644 index 00000000..4c4896df --- /dev/null +++ b/src/views/materialsStation/equipment/teamEntrance/index.vue @@ -0,0 +1,202 @@ + + + + + diff --git a/src/views/materialsStation/toolsLease/apply/component/homeApply.vue b/src/views/materialsStation/toolsLease/apply/component/homeApply.vue index 929b700a..377ce2b3 100644 --- a/src/views/materialsStation/toolsLease/apply/component/homeApply.vue +++ b/src/views/materialsStation/toolsLease/apply/component/homeApply.vue @@ -447,7 +447,7 @@ export default { this.$modal .confirm('是否确认删除所选择的数据项?') .then(function () { - return applyRemove(ids) + return applyRemove({ id: row.id, type: row.taskStatus == 4 ? 1 : 2 }) }) .then(() => { this.getList() diff --git a/src/views/materialsStation/toolsLease/outBound/component/homeApply.vue b/src/views/materialsStation/toolsLease/outBound/component/homeApply.vue index 885c147b..1c508d66 100644 --- a/src/views/materialsStation/toolsLease/outBound/component/homeApply.vue +++ b/src/views/materialsStation/toolsLease/outBound/component/homeApply.vue @@ -91,12 +91,7 @@ 领料单 - + 删除 @@ -310,6 +305,14 @@ export default { this.getList() }, methods: { + handleShow(row) { + // createTime 距离当前时间 3天内 可以删除 + if (new Date().getTime() - new Date(row.createTime).getTime() < 3 * 24 * 60 * 60 * 1000) { + return true + } else { + return false + } + }, format(date) { const y = date.getFullYear() const m = String(date.getMonth() + 1).padStart(2, '0') @@ -436,7 +439,7 @@ export default { this.$modal .confirm('是否确认删除所选择的数据项?') .then(function () { - return applyRemove(ids) + return applyRemove({ id: row.id, type: row.taskStatus == 4 ? 1 : 2}) }) .then(() => { this.getList()