+
+
@@ -150,7 +154,7 @@
-
+
sum + (row.amount || 0), 0);
+ // const totalOutNumber = data.reduce((sum, row) => sum + (row.outNumber || 0), 0);
+ // const totalRemaining = totalAmount - totalOutNumber;
+ // return [
+ // { amount: totalAmount, outNumber: totalOutNumber, remaining: totalRemaining },
+ // ];
+ // },
+ getSummary(param) {
+ const { columns, data } = param;
+ const totalAmount = data.reduce((sum, row) => sum + (row.amount || 0), 0);
+ const totalOutNumber = data.reduce((sum, row) => sum + (row.outNumber || 0), 0);
+ const totalRemaining = totalAmount - totalOutNumber;
+ const summary = columns.map((column, index) => {
+ if (index === 7) { // "计划数量"在第8列
+ return totalAmount;
+ } else if (index === 8) { // "已入库数量"在第9列
+ return totalOutNumber;
+ }else if (index === 9) { // "已入库数量"在第9列
+ return totalRemaining;
+ }
+ return ''; // 其余列不汇总,返回空
+ });
+ return summary;
+ },
handlequeryform() {
this.showMaterialDialog = true; // 显示领料单信息弹窗
this.fetchMaterials(); // 加载领料单数据
From 13a0f8df2b567a7ae10462c2fd1a101acdfc38f5 Mon Sep 17 00:00:00 2001
From: mengjiao <3338049200@qq,com>
Date: Wed, 11 Dec 2024 15:19:49 +0800
Subject: [PATCH 04/11] =?UTF-8?q?wms=E2=80=9C=E6=88=90=E5=93=81=E7=94=9F?=
=?UTF-8?q?=E4=BA=A7=E5=85=A5=E5=BA=93=E4=BF=AE=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/wms/put.js | 7 +++++++
src/views/wms/put/index.vue | 13 ++++++++++++-
2 files changed, 19 insertions(+), 1 deletion(-)
diff --git a/src/api/wms/put.js b/src/api/wms/put.js
index 2912fbf..407f645 100644
--- a/src/api/wms/put.js
+++ b/src/api/wms/put.js
@@ -9,6 +9,13 @@ export function listPut(query) {
});
}
+export function handleUpdateSAP102(data) {
+ return request({
+ url: '/wms/odsRawOrderIn/handleUpdateSAP102',
+ method: 'post',
+ data: data
+ });
+}
// 查询成品生产入库详细
export function getPut(id) {
return request({
diff --git a/src/views/wms/put/index.vue b/src/views/wms/put/index.vue
index cf35a88..bc0b998 100644
--- a/src/views/wms/put/index.vue
+++ b/src/views/wms/put/index.vue
@@ -257,6 +257,17 @@
v-hasPermi="['wms:put:edit']"
>过账
+
+ 102冲销
+
From 27382b2de1759c2443251e446cdc197c52178f3b Mon Sep 17 00:00:00 2001
From: mengjiao <3338049200@qq,com>
Date: Fri, 13 Dec 2024 17:06:03 +0800
Subject: [PATCH 07/11] =?UTF-8?q?wms=E2=80=9C=E5=86=B2=E9=94=80bug?=
=?UTF-8?q?=E4=BF=AE=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/wms/put/index.vue | 26 ++++++++++++++++++++++++++
1 file changed, 26 insertions(+)
diff --git a/src/views/wms/put/index.vue b/src/views/wms/put/index.vue
index bc0b998..e039feb 100644
--- a/src/views/wms/put/index.vue
+++ b/src/views/wms/put/index.vue
@@ -675,6 +675,32 @@ export default {
// 打开对话框
this.dialogVisible = true;
},
+ // handleUpdateSAP102(row) {
+ // // 确保 ids 是数组
+ // const ids = row.id || this.ids;
+ //
+ // // 检查是否有可过账的记录
+ // if (!this.ids || this.ids.length === 0) {
+ // this.$message.error("没有可过账的记录");
+ // return;
+ // }
+ //
+ // // 打开对话框
+ // this.dialogVisible = true;
+ // },
+ handleUpdateSAP102(row) {
+ this.reset();
+ //qualityStatus
+ const id = this.ids[0]
+ let postData = this.ids.map(id => ({ id: id }));
+
+ this.$modal.confirm('是否进行过账').then(function() {
+ return handleUpdateSAP102(JSON.stringify(postData));
+ }).then(() => {
+ this.getList();
+ this.$modal.msgSuccess("过账完成");
+ }).catch(() => {});
+ },
confirmSelection() {
if (!this.selectedType) {
this.$message.error("请选择库存类型");
From 36d4505d270adc5cdebd0fe319e942d2a0f6f69b Mon Sep 17 00:00:00 2001
From: mengjiao <3338049200@qq,com>
Date: Mon, 16 Dec 2024 13:48:32 +0800
Subject: [PATCH 08/11] =?UTF-8?q?wms=E9=A1=B5=E9=9D=A2=E4=BF=AE=E6=94=B9?=
=?UTF-8?q?=E7=B1=BB=E5=9E=8B=E5=AD=97=E6=AE=B5=E4=BF=AE=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/wms/outorderTS/index.vue | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/src/views/wms/outorderTS/index.vue b/src/views/wms/outorderTS/index.vue
index e3a48bf..de2940e 100644
--- a/src/views/wms/outorderTS/index.vue
+++ b/src/views/wms/outorderTS/index.vue
@@ -72,8 +72,8 @@
完成
-
-
+
+
@@ -124,11 +124,11 @@
-
-
-
-
-
+
+
+
+
+
From 90dfd60c39baf542cb1765e4f645726448ce799a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=85=83=E6=B0=94=E6=BB=A1=E6=BB=A1=28jgy=29?=
Date: Fri, 20 Dec 2024 11:34:02 +0800
Subject: [PATCH 09/11] =?UTF-8?q?2024-12-20=20=E7=BB=B4=E4=BF=AE=E5=89=8D?=
=?UTF-8?q?=E7=AB=AF=20-=20=E5=AE=A1=E6=A0=B8=E5=90=8E=E5=9B=9E=E6=98=BE?=
=?UTF-8?q?=E9=97=AE=E9=A2=98?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/device/repairOrder/index.vue | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/views/device/repairOrder/index.vue b/src/views/device/repairOrder/index.vue
index 44122e1..56496f1 100644
--- a/src/views/device/repairOrder/index.vue
+++ b/src/views/device/repairOrder/index.vue
@@ -2524,6 +2524,7 @@ export default {
message: "提交成功!",
type: "success",
});
+ this.getList();
}
});
},
From f05dc3bdf2859ba7841265574b50bf0b8ec0efd0 Mon Sep 17 00:00:00 2001
From: mengjiao <3338049200@qq,com>
Date: Tue, 24 Dec 2024 09:50:03 +0800
Subject: [PATCH 10/11] =?UTF-8?q?wms=E7=99=BD=E8=83=9A=E9=A1=B5=E9=9D=A2?=
=?UTF-8?q?=E4=BF=AE=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/wms/emnews/index.vue | 24 ++++++++++++------------
src/views/wms/wmsEmbryoin/index.vue | 16 ++++++++--------
2 files changed, 20 insertions(+), 20 deletions(-)
diff --git a/src/views/wms/emnews/index.vue b/src/views/wms/emnews/index.vue
index 43a7b80..02997dd 100644
--- a/src/views/wms/emnews/index.vue
+++ b/src/views/wms/emnews/index.vue
@@ -19,7 +19,7 @@
@keyup.enter.native="handleQuery"
/>
-
+
-
+
-
+
-
+
-
+
-
+
@@ -139,11 +139,11 @@
-
-
- {{ parseTime(scope.row.gmtCreate, '{y}-{m}-{d}') }}
-
-
+
+
+
+
+
@@ -152,7 +152,7 @@
-
+
diff --git a/src/views/wms/wmsEmbryoin/index.vue b/src/views/wms/wmsEmbryoin/index.vue
index eea1498..7c7b82e 100644
--- a/src/views/wms/wmsEmbryoin/index.vue
+++ b/src/views/wms/wmsEmbryoin/index.vue
@@ -101,23 +101,23 @@