From d59f0ca8310d9b9d960663d8e60ab3858b051efd Mon Sep 17 00:00:00 2001 From: fengyuan_yang <1976974459@qq.com> Date: Sun, 28 Sep 2025 11:13:41 +0800 Subject: [PATCH] =?UTF-8?q?2025-09-28=20pda=20=E5=85=B6=E5=AE=83=E5=85=A5?= =?UTF-8?q?=E5=BA=93=20=E5=85=B6=E5=AE=83=E5=87=BA=E5=BA=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/po/po.js | 5 +- .../other-transaction/other-inbound.vue | 14 ++ .../other-transaction/other-outbound.vue | 192 +++++++++++------- 3 files changed, 129 insertions(+), 82 deletions(-) diff --git a/src/api/po/po.js b/src/api/po/po.js index 9d0c03f..7c0173a 100644 --- a/src/api/po/po.js +++ b/src/api/po/po.js @@ -31,9 +31,6 @@ export const confirmUnqualifiedProcess = data => createAPI(`inspection/confirmUn // 确认其它入库 export const confirmOtherInbound = data => createAPI(`other/confirmOtherInbound`,'post',data) -// 获取其它入库历史 -export const getOtherInboundHistory = data => createAPI(`other/getOtherInboundHistory`,'post',data) - // 确认其它出库 export const confirmOtherOutbound = data => createAPI(`other/confirmOtherOutbound`,'post',data) @@ -47,4 +44,4 @@ export const printLabel = data => createAPI('/label/setting/printLabel','post',d export const getPoReceiveRecords = data => createAPI(`po/getPoReceiveRecords`,'post',data) // 根据接收单号获取HandlingUnit列表 -export const getHandlingUnitsByReceiptNo = data => createAPI(`po/getHandlingUnitsByReceiptNo`,'post',data) \ No newline at end of file +export const getHandlingUnitsByReceiptNo = data => createAPI(`po/getHandlingUnitsByReceiptNo`,'post',data) diff --git a/src/views/modules/other-transaction/other-inbound.vue b/src/views/modules/other-transaction/other-inbound.vue index 09ba41e..0a77d24 100644 --- a/src/views/modules/other-transaction/other-inbound.vue +++ b/src/views/modules/other-transaction/other-inbound.vue @@ -121,6 +121,11 @@ {{ label.locationId }} + +
+ 删除 +
+
@@ -257,6 +262,15 @@ export default { } }, + // 删除标签 + removeLabel(label) { + const index = this.scannedItems.indexOf(label); + if (index > -1) { + this.scannedItems.splice(index, 1); + this.$message.success('删除成功'); + } + }, + // 确认其它入库 confirmInbound() { diff --git a/src/views/modules/other-transaction/other-outbound.vue b/src/views/modules/other-transaction/other-outbound.vue index af77de3..c1d9103 100644 --- a/src/views/modules/other-transaction/other-outbound.vue +++ b/src/views/modules/other-transaction/other-outbound.vue @@ -74,45 +74,47 @@ - +
- - - + + {{ label.unitId }} - - - + + + {{ label.partNo }} - - - + + + {{ label.qty }} {{ label.unit || '个' }} - - - + + + {{ label.partDesc }} - - - + + + {{ label.batchNo }} - - - + + + {{ label.locationId }} - -
+ +
删除
@@ -130,8 +132,12 @@
- - + +
@@ -325,8 +331,11 @@ export default { const hours = now.getHours().toString().padStart(2, '0'); const minutes = now.getMinutes().toString().padStart(2, '0'); const seconds = now.getSeconds().toString().padStart(2, '0'); - + this.outboundForm.operateTime = year + '-' + month + '-' + day + ' ' + hours + ':' + minutes + ':' + seconds; + + // 设置默认操作员 + this.outboundForm.operatorName = localStorage.getItem('userName') || '系统用户'; } }, mounted() { @@ -341,6 +350,32 @@ export default {