+
+
-
+
{{ parseTime(scope.row.gmtCreate, '{y}-{m}-{d}') }}
-
-
-
-
-
+
+
{{ formatProductCode(scope.row.materialCode) }}
-
+
+
+
+
+
+
+ {{ scope.row.amount - (scope.row.outNumber || 0) }}
+
+
入库
@@ -155,7 +133,7 @@
出库完成
-
+
@@ -173,17 +151,10 @@
{{ parseTime(scope.row.gmtCreate, '{y}-{m}-{d}') }}
-
-
-
-
-
-
-
-
+
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(); // 加载领料单数据
@@ -630,10 +626,12 @@ export default {
console.log("Materials processed");
this.showMaterialDialog = false; // 关闭领料单弹窗
},
- handleRemoveBatch(row) {
-
+ handleRemoveBatch() {
+ const ids = this.ids;
+ let postData = this.ids.map(id => ({ mateOrderInSnId: id }));
+ console.log(postData)
this.$modal.confirm('是否确认删除标识卡编号为"' + wlCode + '"的数据项?').then(function() {
- return Removecard();
+ return Removecard(postData);
}).then(() => {
this.editBatch();
this.$modal.msgSuccess("删除成功");
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 @@
完成