From ca8dec4eda8763624c7a77d4d12691106813bd4f Mon Sep 17 00:00:00 2001 From: fengyuan_yang <1976974459@qq.com> Date: Sun, 28 Sep 2025 16:20:34 +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 --- .../other-transaction/other-inbound.vue | 59 +------------------ .../other-transaction/other-outbound.vue | 55 +---------------- 2 files changed, 2 insertions(+), 112 deletions(-) diff --git a/src/views/modules/other-transaction/other-inbound.vue b/src/views/modules/other-transaction/other-inbound.vue index 0a77d24..945e34c 100644 --- a/src/views/modules/other-transaction/other-inbound.vue +++ b/src/views/modules/other-transaction/other-inbound.vue @@ -31,28 +31,6 @@
-
-
- - - -
-
- - - -
-
-
@@ -121,11 +99,6 @@ {{ label.locationId }} - -
- 删除 -
-
@@ -161,8 +134,6 @@ export default { scanCode: '', isRemoveMode: false, // 默认为添加模式 inboundForm: { - operatorName: '', - operateTime: '', inboundReason: '', targetLocationId: '' }, @@ -262,27 +233,10 @@ export default { } }, - // 删除标签 - removeLabel(label) { - const index = this.scannedItems.indexOf(label); - if (index > -1) { - this.scannedItems.splice(index, 1); - this.$message.success('删除成功'); - } - }, - // 确认其它入库 confirmInbound() { // 验证必填字段 - if (!this.inboundForm.operatorName) { - this.$message.error('请输入操作员'); - return; - } - if (!this.inboundForm.operateTime) { - this.$message.error('请选择操作时间'); - return; - } if (!this.inboundForm.targetLocationId) { this.$message.error('请输入目标库位'); return; @@ -310,8 +264,6 @@ export default { const params = { site: this.site, - operatorName: this.inboundForm.operatorName, - operateTime: this.inboundForm.operateTime, inboundReason: this.inboundForm.inboundReason, targetLocationId: this.inboundForm.targetLocationId, handlingUnitIds: handlingUnitIds, @@ -359,16 +311,7 @@ export default { // 初始化表单数据 initFormData() { - // 设置默认操作时间为当前时间 - const now = new Date(); - this.inboundForm.operateTime = now.getFullYear() + '-' + - this.padStart((now.getMonth() + 1).toString(), 2, '0') + '-' + - this.padStart(now.getDate().toString(), 2, '0') + ' ' + - this.padStart(now.getHours().toString(), 2, '0') + ':' + - this.padStart(now.getMinutes().toString(), 2, '0'); - - // 设置默认操作员 - this.inboundForm.operatorName = localStorage.getItem('userName') || '系统用户'; + // 可以在这里设置其他默认值 } }, diff --git a/src/views/modules/other-transaction/other-outbound.vue b/src/views/modules/other-transaction/other-outbound.vue index c1d9103..654a182 100644 --- a/src/views/modules/other-transaction/other-outbound.vue +++ b/src/views/modules/other-transaction/other-outbound.vue @@ -33,28 +33,6 @@
- - - -
-
- - - -
-
- -
-
{{ label.locationId }} - -
- 删除 -
-
@@ -154,8 +127,6 @@ export default { scanCode: '', isRemoveMode: false, // 默认为添加模式 outboundForm: { - operatorName: '', - operateTime: '', outboundReason: '' }, scannedItems: [], @@ -255,16 +226,6 @@ export default { // 确认其它出库 confirmOutbound() { // 验证必填字段 - if (!this.outboundForm.operatorName) { - this.$message.error('请输入操作员'); - return; - } - - if (!this.outboundForm.operateTime) { - this.$message.error('请选择操作时间'); - return; - } - if (this.scannedItems.length === 0) { this.$message.error('请至少扫描一个HandlingUnit'); return; @@ -275,8 +236,6 @@ export default { const params = { site: this.site, - operatorName: this.outboundForm.operatorName, - operateTime: this.outboundForm.operateTime, outboundReason: this.outboundForm.outboundReason, handlingUnitIds: handlingUnitIds, scannedItems: this.scannedItems @@ -323,19 +282,7 @@ export default { // 初始化表单数据 initFormData() { - // 设置默认操作时间为当前时间 - const now = new Date(); - const year = now.getFullYear(); - const month = (now.getMonth() + 1).toString().padStart(2, '0'); - const day = now.getDate().toString().padStart(2, '0'); - 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() {